Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update Python pip?

Tags:

python

pip

I've had to install Python packages and libraries using pip, but every time I do, it says I'm using an older version of pip, and that v18.1 is available by running the command

python -m pip install --upgrade pip

When I run this command, it just says the same thing. It apparently can't update itself because it's outdated. Is there any way to get around this, maybe by manually updating it?

Thanks in advance, community!

Update: The OS I'm using is currently Windows 10 and Python 3.6.4. The following screenshot is what outputs when running the command.

enter image description here

like image 860
Caleb Hawn Avatar asked Oct 25 '18 15:10

Caleb Hawn


People also ask

How do I update pip tools?

Use python -m pip install --upgrade to upgrade those packages.

How do I update pip pip 3?

For that also we can take the help of pip command. With pip3 install --upgrade <package name> command we can upgrade the installed python package to the latest available version. For example, let's say we want to upgrade the installed numpy package to its latest version.

How do I upgrade to Python 3.8 pip?

To update the Python version, you have to download the latest Python installer. After that, run the installer and install Python's latest version. Then, verify the Python version using the “python -V” command.


2 Answers

Upgrading pip

On Linux or macOS:

pip install -U pip

On Windows:

python -m pip install -U pip
like image 65
Pitto Avatar answered Sep 25 '22 12:09

Pitto


Try with "python -m pip install --upgrade pip --user" It worked with me and I am with Win10.

like image 25
KAM Avatar answered Sep 23 '22 12:09

KAM