繁体   English   中英

无法升级到Python2.7的pip 1.4.1

[英]Unable to upgrade to pip 1.4.1 for Python2.7

我通过easy_install安装了pip但是在检查pip版本时它仍然显示:

pip 1.0.1 from /Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg (python 2.6)

这就是PIP安装的方式:

Searching for pip
Best match: pip 1.4.1
Processing pip-1.4.1-py2.7.egg
pip 1.4.1 is already the active version in easy-install.pth
Installing pip script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip-2.7 script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin

Using /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg
Processing dependencies for pip

您在OSX上的系统Python和您安装的Python之间发生了Python版本冲突。 这可以通过多种方式解决,但我强烈建议您通过Homebrew重新安装Python。 使用Homebrew安装Python时,也会安装pipsetup_tools ,所有内容都将被处理(您不需要使用sudo来安装Python模块)。

请参阅: https//github.com/Homebrew/homebrew/wiki/Homebrew-and-Python

使用Homebrew管理Python发行版可以省去很多麻烦。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM