(原来的标题是 virtualenv中的升级点,但是从现在起我知道问题是什么,在使用devpi时将它重命名为 virtualenv中的升级点更有意义< / em>的)
与this question类似,但the answer给出的内容不起作用。我正在运行2.7 virtualenv。我刚收到通知:
您正在使用pip版本7.1.2,但版本8.0.0可用。 您应该考虑通过'pip install --upgrade pip'进行升级 命令。
好的,我们这样做:
» pip install --upgrade pip
Requirement already up-to-date: pip in ./venv2.7/lib/python2.7/site-packages
You are using pip version 7.1.2, however version 8.0.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
» pip --version
pip 7.1.2 from /foo/bar/venv2.7/local/lib/python2.7/site-packages (python 2.7)
呃?好吧,也许这个:
» python -m pip install --upgrade pip
Requirement already up-to-date: pip in ./venv2.7/lib/python2.7/site-packages
You are using pip version 7.1.2, however version 8.0.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
» pip --version
pip 7.1.2 from /foo/bar/venv2.7/local/lib/python2.7/site-packages (python 2.7)
没有运气。如何升级pip
本身?
正如@J.J.Hakala
所建议的那样:
» pip install --upgrade pip==8.0.0
Collecting pip==8.0.0
Could not find a version that satisfies the requirement pip==8.0.0 (from versions: 0.2, 0.2.1, 0.3, 0.3.1, 0.4, 0.5, 0.5.1, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.8.2, 0.8.3, 1.0, 1.0.1, 1.0.2, 1.1, 1.2, 1.2.1, 1.3, 1.3.1, 1.4, 1.4.1, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 6.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.1.0, 6.1.1, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.1.0, 7.1.1, 7.1.2)
No matching distribution found for pip==8.0.0
You are using pip version 7.1.2, however version 8.0.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
所以似乎pypi确实存在问题?一方面,版本8.0.0
被公布,另一方面它无法找到...
对于它的价值,我正在使用devpi,到目前为止还没有给我任何麻烦......
禁用devpi(在~/.pip/pip.conf
中)可以解决问题。不知道根本问题是什么。我添加了an issue。