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

时间:2018-04-10 01:35:17

标签: python pip upgrade

我正在尝试使用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.

如何更新?

6 个答案:

答案 0 :(得分:109)

最近,Python.org网站stopped supporting TLS version 1.0 and 1.1,可能会导致你面临的鸡蛋问题。尝试使用pip

升级pip 而不使用
curl https://bootstrap.pypa.io/get-pip.py | python

答案 1 :(得分:8)

这两个命令对我有用:

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

然后:

python get-pip.py

答案 2 :(得分:3)

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

>> conda update pip

(对我有用)

答案 3 :(得分:2)

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

sudo python -m pip install --upgrade pip

答案 4 :(得分:1)

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

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

答案 5 :(得分:0)

显然问题出在Anaconda。该解决方案对我有用:https://github.com/conda/conda/issues/9746#issuecomment-616314792