15,835 questions
0
votes
1
answer
82
views
PyCharm keeps using a non-existent Python 3.14 interpreter even after removing it from the system
I’m on Windows 11 and originally had two Python installations: 3.14 and 3.9.
Both were installed and added to the PATH.
After setting up PyCharm 2025.2.4, I started getting this error when creating a ...
2
votes
1
answer
101
views
Type checker highlights 'Unexpected argument' for dynamically generated function
I'm trying to create a function dynamically. Here is an example:
import ast
import textwrap
from typing import Any, Callable, List, Union
def create_function(
func_name: str,
arg_types: List[...
Advice
0
votes
3
replies
63
views
How to disable autocomplete in PyCharm’s Python Console (not the editor)?
I’m using the latest PyCharm (2025.2.4). I couldn't find anything like "autopopup code completation". Has this option been moved or removed? Is there any workaround to disable autocompletion ...
2
votes
1
answer
95
views
How to correctly set PyCharm 'Sources Root' when having few 'src' folders for few packages
I have a project with multiple packages, each containing its own src folder:
project/
src/
package1/
pyproject.toml
src/
logic/
somestuff.py
mymodel1.py
...
7
votes
1
answer
810
views
How to fix this:Type alias is not generic or already specialized
As shown in the image, I got a warning in PyCharm at the list index positions like [0][1][2].... The program still runs, but I don't understand what this warning means or how to resolve it.
...
-1
votes
0
answers
32
views
PyCharm, when saving non-py files, changes the icon of the modified file and cannot open it any more
Mac OS 15.6.1 (Also happening on some older versions)
PyCharm 2022.2.5 (Community Edition, also happening on some older versions)
I have projects containing both python code and groovy/jenkinsfile. ...
0
votes
0
answers
8
views
How to expand Windows environment path variable in PyCharm Run/Debug Configurations? [duplicate]
How to expand Windows environment path variable in PyCharm Run/Debug Configurations, in the fields named Script parameters or additional pytest/test options?
It's not an exact 1:1 duplicate of this ...
1
vote
0
answers
50
views
PyCharm PowerShell terminal shows FileNotFoundError for conda-hook.ps1 in a random _MEIxxxxx temporary folder
When I open the integrated terminal in PyCharm (PowerShell), I get this error:
Every time I restart PyCharm, the _MEIxxxxx folder name changes (e.g., _MEI131402, _MEI45642), so copying the file there ...
1
vote
1
answer
111
views
How can I remote-debug a Python app running in Docker from PyCharm Professional?
I’m trying to remote-debug a Python service that runs inside a Docker container using PyCharm 2025.2.3 on macOS.
I do have an active license, but the IDE no longer shows any obvious way to attach to a ...
0
votes
0
answers
80
views
problem with PyCharm downloading packages
I use PyCharm 2025.2.3 (Community Edition). I want to download the package av version 16.0.1, which is the newest version. After I clicked the download icon, it stopped reacting and behaved like this ...
0
votes
0
answers
52
views
How to disable spell checking for hex color codes?
How to avoid spell checking for hex color codes like "#f8cecc" in PyCharm?
I would expect PyCharm to not check spelling for color codes.
I tried to use # noinspection but it did not work. I ...
-1
votes
1
answer
64
views
How to make sure I set the correct Python interpreter in PyCharm as in the terminal?
I open a PyCharm project (Windows 11) and inside PyCharm I run the terminal to install some requirements:
pip install -r requirements.txt
However, when opening a Python file from the same project in ...
1
vote
1
answer
82
views
wrong interpreter displayed [closed]
I installed python 3.14 and PyCharm Community Edition 2022.3.3 on my new computer. In the PyCharm's setting, the interpreter is .../python314/python.exe, which is correct. However, when looking at the ...
0
votes
1
answer
48
views
Remove project (repo) from Pycharm's git tool window (branches pane)
An unrelated repository exists in git tool window (branches pane) and I would like to remove it. How do I do this?
I think the problem came because of the following: originally there were three ...
3
votes
1
answer
136
views
pycharm seems to load some modules BEFORE my own code
In a blank new PyCharm Project I create a file "runner.py" with following code:
import random
print(random.random())
Next to this file I create a file "random.py" which stays ...
0
votes
1
answer
59
views
How can I enable context-aware indentation when pasting Python code in VSCode?
I'm trying to replicate a feature from PyCharm in Visual Studio Code and running into trouble.
In PyCharm, when I copy a block of Python code and paste it inside a function, class, or loop, the IDE ...
0
votes
1
answer
109
views
Pycharm 2025.2 pro WSL interpreter not running [closed]
I have created a venv interpreter using python -m venv venv and another using poetry
I pointed pycharm to these interpreters (separately), and it claims to see them
Then, running the simplest program ...
0
votes
1
answer
107
views
import torch error: DLL load failed while importing _C
I was trying to follow a project in university where we had to import cellpose. The import delivered an error message which could be tracebacked to import torch (see below). Every import was done in a ...
3
votes
1
answer
192
views
Pycharm: "Python Interpreter exited with non-zero exit code -1" when connecting to an existing Docker Compose Service
I have a multi-container application managed by a docker-compose.yml file consisting of an ollama, openwebui, and python-dev. I'm working on PyCharm 2025.1.3.1; MacOS Sequoia 15.6.1; Docker 28.1.1, ...
0
votes
0
answers
67
views
confused PyCharm project and submodule displaying structure when committing
background
My original project structure is like this:
20240720 # project root
├── tests
├── vnpy # submodule
├── vnpy_clickhouse # submodule
├── vnpy_datafeed # submodule
└...
2
votes
0
answers
73
views
Bluetooth low energy with calliope mini
I would like to create a Bluetooth remote control for my Calliope Mini v2. The Calliope works with BLE (Bluetooth Low Energy), and I wrote the code for it in Python using Makecode. I used a BLE ...
1
vote
0
answers
83
views
PyCharm remote SSH + Conda interpreter works once, but disappears after restart ("Nothing to show")
I am using PyCharm 2024.1 (Windows 10) and connecting to a remote Linux server via SSH.
On the server, I have Conda installed under ~/miniconda3/.
When I first configure the remote interpreter in ...
0
votes
0
answers
40
views
Opening all the Poetry projects in a repo efficiently
Consider a git repo for a monorepo: it contains a tree of many individual Poetry projects.
To get this into operational condition in PyCharm, it appears to be necessary to manually walk through all ...
1
vote
1
answer
95
views
PyCharm Terminal Dark Theme Color - Can't see parameters due to color
I use the dark theme in PyCharm. It works great for everything except one thing. In the terminal when you type parameter for a command that uses a dash such as either of the two following commands:
...
0
votes
0
answers
143
views
Python packages not autocompleting in Pycharm for one project, but works fine for another
I'm using Pycharm 2025.1.3.1. I created a new project that uses the random package and the turtle package.
In one project, turtle classes and methods autocomplete, and in the other, they don't. I've ...