不知何故pip --upgrade
不升级任何软件包。pip安装 - 升级pip安装相同版本
我在OSX埃尔卡皮坦(10.11.3),并使用brew install python
的Python安装的Python:/usr/local/bin/[email protected] -> ../Cellar/python/2.7.11/bin/python
PIP:/usr/local/bin/[email protected] -> ../Cellar/python/2.7.11/bin/pip
后成功安装我跑pip install --upgrade pip
。
全输出:
$ pip install --upgrade pip
Collecting pip
Using cached pip-8.1.0-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-8.0.2
You are using pip version 8.0.2, however version 8.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
为什么不点子安装新版本?
更新
我认为这是与我~/.pydistutils.cfg
文件运行pip
时,修正了DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both
错误。 I followed these instructions
刚才有同样的问题。 –
你可以试试'pip install -U pip'并告诉你是否得到相同的输出? – 2016-03-15 13:41:30
'哪个pip'的输出是什么? – Maresh