如何将easy_install升级到easy_install-3.4?
我刚把Python升级到了3.4版本。不过,不知道为什么,pip没有默认安装。所以我想用命令“sudo easy_install pip”来安装pip。但是当我输入这个命令时,出现了一个错误:
Python 3.4.0无法运行/usr/bin/easy_install。你可以试试以下替代方案:
/usr/bin/easy_install-2.5(使用Python 2.5) /usr/bin/easy_install-2.6(使用Python 2.6) /usr/bin/easy_install-2.7(使用Python 2.7)
运行“man python”可以获取关于Mac OS X中多版本支持的更多信息。
所以,我在网上查了查,想知道怎么把easy_install更新到3.4版本,但找不到任何资料。有没有人知道怎么更新easy_install的版本?
2 个回答
我知道这个问题有点老了,但我刚在我的Mac上升级到了python 3.4.2,结果运行'pip install '也不管用。
我找到这个链接:https://www.python.org/dev/peps/pep-0439/,上面说要用'pip3'来代替'pip',结果对我来说完全没问题。
要解决pip
的问题,你可以直接从pip的网站上使用get-pip.py
这个脚本。
下载这个文件:https://raw.github.com/pypa/pip/master/contrib/get-pip.py
然后运行python get-pip.py
,前提是你的账户有管理员权限。
来源: http://pip.readthedocs.org/en/latest/installing.html#install-or-upgrade-pip