Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm does not active existing virtual environment

Pycharm does not activate existing virtual environments. When I select it in the list of possible venvs and click OK it just does some loading and does not close the window. The venv is not activated.

The only way to get a proper venv working is to start a new project have Pycharm create it when starting the project. Otherwise it does not work.

I have upgraded Pycharm many times suspect that older versions are messing something up.

like image 903
shivan Avatar asked Sep 07 '25 22:09

shivan


1 Answers

Tldr: Delete Pycharm's config directory found in ~/.config/JetBrains

For other OS the locations are here

Wanted to answer my own question since this has been bugging me for weeks on end.

I tried deleting Pycharm's cache directory, it did not the fix the problem.

But after I deleted the entire config directory it fixed the problem. I am pretty sure some of the icons in the new project wizard also changed, point to dross from old versions of Pycharm messing things up for me.

like image 149
shivan Avatar answered Sep 10 '25 12:09

shivan