Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm - Autoimport not showing virtualenv packages

PyCharm interpreter is recognizing my packages from venv:

enter image description here

(Django is installed in my virtual environment).

I am even allowed to navigate through it (ctrl+click):

enter image description here

But the imports are broken! When I try to auto import classes that are recognized by the interpreter, they don't appear as an auto-import option if they are inside my virtualenv:

enter image description here

I mean, if I manually import that class, the interpreter will recognize it, but the autoimport won't show it as an option. What's happening?

Also, my python interpreter is properly configured:

enter image description here

This is Ubuntu 22.04.1 and PyCharm 2022.2.3

like image 291
Gonzalo Dambra Avatar asked Oct 11 '25 09:10

Gonzalo Dambra


1 Answers

try to mark your virtualenv folder as excluded

https://www.jetbrains.com/help/pycharm/configuring-project-structure.html

like image 121
Mark Vergunst Avatar answered Oct 13 '25 22:10

Mark Vergunst



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!