Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading pip for different versions of python

Tags:

python

pip

I have two versions of python installed on my computer (3.6 and 3.7). Just upgraded pip to the latest version (19.0.1) using the command python -m pip install --upgrade pip however i think it only upgraded the pip for python version 3.6. When attempting to install a package specifically for python version 3.7 with the following command pip3.7 install scipy i got the message saying You are using pip version 18.1, however version 19.0.1 is available. Clearly only the pip for version 3.6 was upgraded. I cannot figure out a command to upgrade 3.7 pip as well. I tried the following:

python -m pip3.7 install --upgrade pip

This did not work (Trying to use the logic of how packages are handled for different versions of python). Could not find a question that addressed this specific issue. Any help would be greatly appreciated.

like image 357
Ratchet Avatar asked Jul 01 '26 03:07

Ratchet


1 Answers

Use the python 3.7 interpreter to run the command:

python3.7 -m pip install --upgrade pip

Or use the pip3.7 binary directly:

pip3.7 install --upgrade pip
like image 159
Marcus Avatar answered Jul 03 '26 17:07

Marcus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!