Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

PyCharm terminal does not use venv, but "Python Console" does

Writer Sophia Terry

In PyCharm, I have created a new Python project with its own venv environment.

But, for some reason, executing pip install ... in PyCharm's terminal uses the systemwide Python installation instead of the venv. Therefore, I cannot import the package from PyCharm's "Python Console", which does use the venv interpreter as expected.

Running python via the terminal starts the system interpreter as well. The command line prompt shows the (venv) prefix and I have deactivated my Anaconda environment via conda deactivate. I am running PyCharm on Windows. No error message is shown.

enter image description here

Anybody with the same experience?

1 Answer

Turned out the error is in the blacked-out path: One of the folders contains special characters in its name. And although spaces and hyphens are generally not a problem, it's a different story for non-ASCII characters like German umlauts. Apparently, PyCharm can handle them - but not venv.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy