aurumpurum
aurumpurum

Reputation: 1082

how do I upgrade pip on Mac?

I cannot upgrade pip on my Mac from the Terminal.

According to the documentation I have to type the command: pip install -U pip

I get the error message in the Terminal: pip: command not found

I have Mac OS 10.14.2, python 3.7.2 and pip 18.1. I want to upgrade to pip 19.2.3

Upvotes: 14

Views: 68478

Answers (9)

Michael
Michael

Reputation: 234

upgrading pip as of 09/2020:

pip3 install --upgrade pip==20.2.2

Latest version here, comment by DragonKnight

Upvotes: 21

Fede Alvarez
Fede Alvarez

Reputation: 11

If you want to upgrade to the latest pip version (as of this writing pip-21.2.4) and you are using mac, do the following:

Open your terminal, on your main folder and type:

$ pip3 -V 

This will give you the version you have installed

Then type:

$ pip3 install --upgrade pip

Or

$ sudo pip3 install --upgrade pip

The latest if you need to input your password

Upvotes: 1

LALIT KUMAR
LALIT KUMAR

Reputation: 29

For MAC with M1 :

pip3 install --upgrade pip

If you want to install specific version:

pip3 install --upgrade pip==21.1.1

After pip == version_number should be entered

If you want to know more about pip commands:

pip3 help

Upvotes: 0

piffle
piffle

Reputation: 33

Make sure you have pip installed in the first place. Refer to https://pip.pypa.io/en/stable/installing/ to install pip.

Upvotes: 0

queen williams
queen williams

Reputation: 1

I came on here to figure out the same thing but none of this things seemed to work. so I went back and looked how they were telling me to upgrade it but I still did not get it. So I just started trying things and next thing you know I seen the downloading lines and it told me that my pip was upgraded. what I used was (pip3 install -- upgrade pip). I hope this can help anyone else in need.

Upvotes: 0

Ron
Ron

Reputation: 241

pip3 install --upgrade pip


this works for me!

Upvotes: 24

aurumpurum
aurumpurum

Reputation: 1082

I have found an answer that worked for me: sudo pip3 install -U pip --ignore-installed pip

This installed pip version 19.2.3 correctly.

It was very hard to find the correct command on the internet...glad I can share it now.

Thanks.

Upvotes: 3

Saurav Rai
Saurav Rai

Reputation: 2367

Try this

pip install --upgrade pip==19.2.3

Hope this will help you.

Upvotes: 5

outeh
outeh

Reputation: 63

try:

sudo -H pip3 install --upgrade pip

Upvotes: 0

Related Questions