Improve everyday.

Using the right pip for your Python version

|

Context

When you install several versions of python on your machine, there might be some mixed issues when using pip.

For example, when using pip3, you see that the requirements are already satisfied, but for python2.7 :

tonio@mythe ~ ยป pip3 install --user neovim
Requirement already up-to-date: neovim in /usr/local/lib/python2.7/dist-packages

Solution

Run the python -m pip command to execute the right pip :

python -m pip install --user neovim
python3 -m pip install --user neovim

Comments