wilosa.blogg.se

Python2 pip
Python2 pip




python2 pip

The so-called path is a list of directories where your system searches for executables. It's good practice to always use -m, even if you have just one global version of Python installed from which you create virtual environments.

python2 pip

The -m flag makes sure that you are using the pip that's tied to the active Python executable. Python 3.8, or the Python version within the virtual environment?Īn easy way to get around that ambiguity is simply to use python -m pip install Then what version of pip is used? Is it the pip for the default version, i.e. Typing python in a shell starts the 3.9 interpreter. We now have the virtual environment activated using Python 3.9. venv/bin/activate # ".venv\Scripts\activate" on Windows Suppose you are then starting a new project where you want to use Python 3.9.

python2 pip

Therefore, when you type python3 (Linux or Mac) or python (Windows) in a shell you will start a 3.8 interpreter because that's the first Python executable that is found when traversing your path. It's the first one appearing in your path. You have three versions of Python installed:






Python2 pip