I'm a bit confused on this and can't find a satisfactory answer searching elsewhere - everything is about using external libraries in some way or another.
In my PyCharm projects, I've got your project root directory, which contains a venv
. This venv
of course contains the python executable relative to the project, as well as the relevant site-packages
and modules I've downloaded via pip
or whatever.
But there's always an External Libraries
section, that has it's own Python executable, venv
, .gitignore
, site-packages
, etc.
Is this normal? What's the purpose of having two venvs
in the same project?
Thanks!
You only have one venv normally in your Project The other Python Executable should be the global one. Normally you use a venv to keep track of the needed Packages for this specific project. So that you don't confuse other Packages with other projects or have dependency/Version Issues
If you want you can also use the global Installation of Python which would not create a venv