Cannot upgrade pip 9.0.1 to 9.0.3 - requirement already satisfied
Asked Answered
M

6

34

I'm trying to update pip using pip install --upgrade pip, but I get a "requirement satisfied" error and an "outdated version" message at the same time

$ pip install --upgrade pip
Requirement already up-to-date: pip in 
/Users/user/Envs/proj/lib/python2.7/site-packages
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' 
command.

How do I update?

Misdate answered 10/4, 2018 at 1:35 Comment(1)
Do you by any chance have pip 9.0.3 in your global Python, but 9.0.1 in a virtualenv? That shouldn't be a problem, but it seems more likely to go wrong than any other combination I can think of.Felic
C
126

Recently, Python.org sites stopped supporting TLS version 1.0 and 1.1, which could be causing the chicken-and-egg problem you are facing. Try upgrading pip without using pip:

curl https://bootstrap.pypa.io/get-pip.py | python
Crosslet answered 10/4, 2018 at 16:3 Comment(6)
Fails on Windows 7: 'curl' is not recognized as an internal or external command operable program or batch file.Seale
@StevenVascellaro perhaps just download it directly from the link above and run python get-pip.py? Also later versions of Python seem to be shipped with pip includedCrosslet
Worked for me on Mac.Telpherage
For those who want to upgrade pip3, run the same command as above but use python3 instead of python.Military
No go for me: curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.Chequerboard
This gave me the same error: Could not fetch URL pypi.org/simple/pip: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skippingInexpugnable
D
11

These two commands worked for me:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

then:

python get-pip.py
Dehisce answered 1/11, 2018 at 20:40 Comment(2)
No go for me: curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.Chequerboard
Thank this solution worked best for me by paul (to split Anupam's answer into two steps) because of a permission error running the get-pip.py script after curl downloads it. Changing the last line to sudo python get-pip.py was the trick. FINALLY upgraded pip beyond 9.0.xKuwait
V
4

Try:
Right Click Anaconda Prompt (Run as Admin)

>> conda update pip

(It worked for me)

Vanessa answered 12/7, 2018 at 20:10 Comment(0)
A
2

The curl answer above didn't work for me. This worked for me

sudo python -m pip install --upgrade pip
Arsyvarsy answered 1/9, 2018 at 15:25 Comment(1)
Yeah I got the same SSL error that inspired this. Gaaaahhh!Abell
B
1

This worked for me in windows with Anaconda3: Add **\Anaconda3\Library\bin to windows path

set path=anaconda_install_path\Anaconda3\Library\bin to windows path;%path%
Bringingup answered 26/2, 2020 at 11:29 Comment(0)
S
0

Apparently the issue is with Anaconda. This solution worked for me: https://github.com/conda/conda/issues/9746#issuecomment-616314792

Socio answered 26/10, 2020 at 1:13 Comment(1)
While this might answer the question, if possible you should edit your answer to include the most important information in the provided link in the answer itself. This can help prevent your answer from becoming invalid if the link stops working or the content significantly changes.Host

© 2022 - 2024 — McMap. All rights reserved.