Python 无法将 pip 9.0.1 升级到 9.0.3 - 要求已满足

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/49743961/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 19:13:45  来源:igfitidea点击:

Cannot upgrade pip 9.0.1 to 9.0.3 - requirement already satisfied

pythonpipupgrade

提问by Soundtemple

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

我正在尝试pip使用进行更新pip install --upgrade pip,但同时收到“满足要求”错误和“过时版本”消息

$ 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?

如何更新?

回答by Anupam

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 pipwithoutusing pip:

最近,Python.org 站点停止支持 TLS 版本 1.0 和 1.1,这可能会导致您面临的鸡与蛋问题。尝试升级pip而不使用pip

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

回答by paul

These two commands worked for me:

这两个命令对我有用:

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

then:

然后:

python get-pip.py

回答by OM Bharatiya

Try:
Right Click Anaconda Prompt (Run as Admin)

尝试:
右键单击 Anaconda Prompt(以管理员身份运行)

>> conda update pip

(It worked for me)

(它对我有用)

回答by swb

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

上面的 curl 答案对我不起作用。这对我有用

sudo python -m pip install --upgrade pip

回答by alpoza

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

这在带有 Anaconda3 的 Windows 中对我有用:将 **\Anaconda3\Library\bin 添加到 Windows 路径

set path=anaconda_install_path\Anaconda3\Library\bin to windows path;%path%