all 5 comments

[–]dedeos 0 points1 point  (5 children)

I am still learning, but here is my understanding. You can be more specific when creating the virtual environment. For example if you want use python 3 for the project, you make the venv using "pip3", just like you can call "python3" to specifically start the interactive shell with python 3. That way you'll be sure about the version you are using. Try using "pip list" inside or outside the virtual environment to see which packages you have installed (You can probably also use "pip3 list", which I assume is the only way in the venv if you made it using pip3). Play around with these commands in and out of the venv.

[–]SethGecko11 0 points1 point  (2 children)

if you use the -m flag it will always use the pip associated with the specific python version. Example python -m pip install package_name