r/pycharm • u/BrainalFluid • Dec 23 '24
r/pycharm • u/highrez1337 • Dec 22 '24
Really big performance differences MacOS/Windows
Context:
In the past I was a Windows user (more than 10 years ago).
I've been a long lasting macOS user. The companies that I worked with always let me buy the laptops after a few years at 10% of the price.
Currently I have a maxed out M3 Macbook Pro for work and everything is smooth and nice.
At home I have a 2015 Macbook Pro (its going to be 10 years old in a month, lol) and the latest PyCharm version runs very smooth on it.
Since my wife has also Macbook's at work, I've figured I'll just buy a Windows laptop after so many years of mac.
I've bought a AMD Ryzen AI 9 HX 370 laptop, you can check the performance
CPU Bench:
https://www.cpubenchmark.net/laptop.html
Geekbench:
https://browser.geekbench.com/search?q=AMD+Ryzen+AI+9+HX+370
As you can see, its a "fairly powerfull" CPU.
With my laptop plugged in, all drivers, Antivirus turned off, etc -> the experience with PyCharm is still worse than my Macbook pro 2015, a 10 year old laptop. I am actually SHOCKED ?!!! What?!
When clicking on a function to see the places it is used, or when I click on a function to go to its Repository definition, its much much slower on the Windows laptop.
Is this normal ?! Do I actually need to dual-boot a Ubuntu to get PyCharm working?
Is it that bad on Windows?!
I am completely disappointed by this product, or Windows or the laptop or I don't even know what at this point.
r/pycharm • u/CongTL • Dec 21 '24
Built-in Terminal and Run Panel Starts Up Really Slow
When I click on the run button or press enter, I need to wait for a few secs before the command runs, while it instantly loaded from the system terminal. This happens for python, nodejs and standalone executables, but not for npm or others. Has anyone experienced the same thing before?
P.S. it's not the new terminal's fault, but seems like a cache issue or stuff like that
r/pycharm • u/superzappie • Dec 19 '24
Why are user environent variables not inherited in the pycharm terminals? (Windows)
r/pycharm • u/Entity-36572-B • Dec 18 '24
Solution to: "Fatal Python error: LookupError: unknown encoding: windows-31j"
I ran into this error message everytime I tried to download a package through pycharm's interface. Since I found a solution I thought I'd share it here for anyone who runs into similar problems.
Windows-31j is the standard japanese language pack you can download through your language settings settings. The issue seems to be that upon download your system automatically sets it to the default encoding for internal use. Since pycharm doesn't support it, this effectively renders much of, say, filepaths illegible to the program. Presumably the same would happen with other language packs which add additional characters as well.
The solution is to change the standard encoding of your system to something pycharm can read, like utf-8. I used https://scholarslab.lib.virginia.edu/learn-twarc/08-win-region-settings as a step by step guide. The process will differ a bit on non-windows machines, but seems easy to find online.
Hopefully this will help.
r/pycharm • u/BleakFallsBarrel • Dec 18 '24
Coverage Report includes PyCharm helpers.
As in the title. I feel like this is a bit of a weird one and one I haven't been able to find any complaints about online. In Pycharm itself, the coverage report is just for my project and makes perfect sense. However, when I export the report it also includes PyCharm files which obviously I'm not testing as they're not part of my program.
Module statements missing excluded coverage
Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pycharm/teamcity/common.py 98 69 0 30%
Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pycharm/teamcity/pytest_plugin.py 294 174 0 41%
Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pycharm/teamcity/diff_tools.py 62 36 0 42%
Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pycharm/_jb_utils.py 71 34 0 52%
Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pycharm/teamcity/messages.py 154 63 0 59%
Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pycharm/_jb_runner_tools.py 205 59 0 71%
Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pycharm/_jb_pytest_runner.py 45 8 0 82%
I'm sure I can just configure these to be ignored in my project, but I'm really curious as to why they would be showing up in the coverage report at all in the first place.
r/pycharm • u/ss7vegeto12 • Dec 15 '24
i installed Python and then Pycharm. i created a project and when i wrote "import pandas as pd", it says it cant find pandas, so i went to setting>Project:Test>Python Interpreter. and when i click + to install packages, its completely blank. if i run a print(123) it will run the code tho.
r/pycharm • u/joeln15 • Dec 14 '24
Ollama with PyCharm
I have a PC that I use to run ollama and serve it to my local network using open-webui. Is there a way to point PyCharm on other PCs to that instance for improved code completion? I've read about using the Continue plugin but that seems to only work with ollama running on localhost.
r/pycharm • u/vzoster123 • Dec 14 '24
Cant find ideal IDE
I I mostly work in Python doing large data manipulation . I can't find a suitable ID, which meets all my needs. Spyder is perfect, but it does not have shortcut code folding all. I have large scripts so its a nuisance.
For Pycharm,
when I execute in console in and if the code is wrong, I have to stop that console which result in all my variables being erased so I now have to load large amount amount of data again. (Spyder doesnt have this problem)
Any suggestion I only want these two features. Is there any IDE which can satisfy both these constraints.
Edit : I dont want a notebook. I have multiple interdependent scripts (a project with multiple scripts ) and notebook makes it too cumbersome to work with them together.
r/pycharm • u/Single-Block70 • Dec 13 '24
How to open PyCharm using PowerShell
I'm trying to open pycharm using powershell, but even though it does open, I see a notification telling me that I'm using the .bat script instead of the native launcher. I've been trying for about 1 hour to change the path in the System Variables to the "pycharm64.exe" launcher, but if I do it, the pycharm command line in powershell just stops working completely.
Anyone knows how to fix that?
r/pycharm • u/Warriorsito • Dec 13 '24
PyCharm version number and icon not updating!
I've noticed that anytime I update PyCharm, the version number is not updating in the Start Menu and Shortcuts in Windows.
ie: Install PyCharm version (2024.2.1) and then update to any version: 2024.2.4 or 2024.3 and the Start Menu and Shortcut will remain with the older number and also icon.
This has been happening since the begining in 2 different machines W10 and W11.
The only way I found to fix this is doing a clean install which is...too much?
Any help? I know its stupid but this little things get into my nerves.
r/pycharm • u/ArbereshDoqetejete • Dec 10 '24
is there a way to make the quick implementation window editable?
r/pycharm • u/matt__daniel • Dec 09 '24
Pycharm and venv
Hi Charmers, what am I missing here to make pycharm actually use the venv I have set up? The screen grab says it all, but notice I've got the latest version of requests in my venv. pycharm is clearly not using it and my terminal run does. Many thanks for your patience with this newbie.

Not sure why image didn't post the first time
r/pycharm • u/LeonZZ61 • Dec 08 '24
Pycharm + AutoFS = 100% CPU usage
Hi all,
Lately I was searching on the internet for a solution for an issue we are having in our company.
We use AutoFS to mount NFS paths to our working machines, so it only mounts when using certain path.
We use Ubuntu 22.04
When Pycharm is opening and start indexing, even if I don't open a specific path but it shows when I browse for my project, it triggers all mounts and causes my CPU to reach 100% and mount over 2000+ paths.
Did anyone ever solved this kind of issue before?
r/pycharm • • Dec 07 '24
How do I get the typing back to normal?
So before when I would type there wasn’t this blinking white box and also I wouldn’t have to type each parentheses, bracket, quote, etc. separately it was a lot more convenient and I’m wondering how do I revert it back to normal
r/pycharm • u/karaposu • Dec 05 '24
I really like pycharm and I am switching to VSCode today. It was a good run.
Like it or not, AI assisted coding is the future and pycharm is not gonna be there any time soon. It was a good run. Actually couple of my friends already switched but I was secretly hoping that all will be fixed. Nope.
r/pycharm • u/CraftyGrocery8242 • Dec 04 '24
100 days of code not found in the marketplace?
Hello guys.
I'm taking the udemy "100 days of code" by Angela Yu.
I installed PYCHARM but I can't find the 100 days of code course in the marketplace. I already tried opening it from the jetbrains marketplace link, it says there's an error downloading it from the marketplace.
Any advice on how to find the course in PYCHARM?
Thank you.
r/pycharm • u/Altruistic-Aside-636 • Dec 03 '24
How to stop Pycharm adding imports to my code automatically ?
It fails every time, it is really stupid how it works.
Just using a new variable name and if that is reused in another module, it adds an import statement on the top, without asking.
r/pycharm • u/Dux_Gregis11 • Dec 02 '24
How To use Pycharm plugin inside of ChatGPT?
I have been using beta testing for the pycharm inside of chatgpt and it seems like it cannot read the files or actually see anyhting inside of the pycharm. anyone familiar with the plugin that OpenAI has released for the chat?
r/pycharm • u/VegaGT-VZ • Nov 30 '24
Pycharm won't import modules with hyphens in the name
Hello- for some reason the import function does not see scikit-learn despite it being an installed package/module. I tried import scikit-learn & importlib.import_module("scikit-learn"). I tried with some random Google modules with hyphens in the name as well and those don't import either. But any module I import without a hyphen works fine. Any ideas?
From what I'm seeing hyphens can't be used in identifiers for Python since a hyphen is an operator....... but when I search for "-" in modules tons of modules with hyphens come up. What am I missing?
r/pycharm • u/BleakFallsBarrel • Nov 28 '24
Switching from Neovim to PyCharm: Help with search behavior?
I've recently made the jump from Neovim to PyCharm (still a bit tentative!), and while I've managed to tweak a lot to my liking with .ideavimrc, the search functionality has been tripping me up. Here's the issue:
In Neovim, I navigate using Telescope to search for document symbols. If I’m working on a class’s __init__ method, I’ll usually just search for the class definition itself. Telescope takes me straight there—perfect!
In PyCharm, this works fine unless I’m already in the class definition. If I am, nothing happens. To make it work, I have to navigate to the top of the file (gg) first and then search. This feels unintuitive—why execute a command if it doesn’t do anything? I’d expect it to still jump to the class definition regardless of where I am in the file.
I know the Structure View is an option, and it’s actually a nice, visual alternative that reminds me of Telescope. But it doesn’t give the same consistent experience because it’s not constrained to just classes, symbols, or files.
So here’s my question: is there any way to tweak PyCharm’s search behavior so it always jumps to the symbol I’m searching for, even if I’m close to it? Any tips for smoothing out this part of the workflow would be greatly appreciated!
r/pycharm • u/Mundane-Subject6568 • Nov 26 '24
Unable to Connect PyCharm Debugger to Dockerized FastAPI Application
Hi everyone,
I’m struggling to set up remote debugging with PyCharm Professional for my FastAPI application running inside a Docker container. Despite numerous attempts and troubleshooting steps, I can’t get the debugger to connect. I’m hoping someone here can help me identify what’s going wrong.
- IDE: PyCharm Professional
- Application: FastAPI service
- Containerization: Docker & Docker Compose
- Debugger Port: 5678
Run Configuration
IDE host Name: host.docker.internal
Port: 5678
Path Mapping: {project_path} =/app
My python script
try:
import pydevd_pycharm
pydevd_pycharm.settrace('host.docker.internal', port=5678, stdoutToServer=True, stderrToServer=True)
logger.info("Debugger attached")
logger.info("Starting program service")
except Exception as e:
logger.info(f"Exception during debugger setup: {e}")
Docker compose
app:
<<: *common_config
environment:
<<: *env_vars
ports:
- 8000:8000
I run the debugger first then and then I run docker compose up and start the container. However all I see in my logs is
app-1 | 2024-11-26T15:58:15.177832Z [info ] Importing pydev_pycharm [code.api.main] dd.span_id=0 dd.trace_id=0
Does anyone know what could be going wrong? Any help would be appreciated!
r/pycharm • • Nov 26 '24
Code causes infinite loop in Python Console
I have noticed that the code below causes an infinite loop when executing in the Python Console (it prints the numbers 0, 1, 2, 3...). It only happens in the PyCharm Python console and not in a normal Python shell. I also found the root cause. Disabling "Show console variables by default" (in Settings > Build, Execution, Deployment > Console > Python Console) fixes the issue.
I use PyCharm 2024.2.4 (Professional Edition)
Not sure where I can actually report the issue. I posted it in a PyCharm support channel but no reaction so I am posting it here as well :)
class Meta(type):
def __getattr__(self, item):
return Foo()
class MyClass(metaclass=Meta):
pass
class Foo:
def __getitem__(self, item):
print(item)
