簡體   English   中英

如何將easy_install升級到easy_install-3.4?

[英]How to upgrade easy_install to 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)

有關Mac OS X中多版本支持的更多信息,請運行“man python”。

所以,我通過在線查看了如何將easy_install更新到3.4版,但我找不到任何來源。 有誰知道如何更新easy_install的版本?

要解決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

我知道這個問題有點舊,但我剛剛在Mac上升級到python 3.4.2並運行'pip install'對我來說也不起作用。

我找到了這個鏈接: https ://www.python.org/dev/peps/pep-0439/說使用'pip3'而不是'pip',這對我來說非常有效。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM