【发布时间】:2016-04-07 00:05:19
【问题描述】:
我正在尝试安装 pip3,但我没有任何运气。另外,我尝试了sudo install,但没有成功。如何在我的 Mac 上安装 pip3?
sudo easy_install pip3
Password:
Searching for pip3
Reading https://pypi.python.org/simple/pip3/
Couldn't find index page for 'pip3' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for pip3
error: Could not find suitable distribution for Requirement.parse('pip3')
【问题讨论】:
-
要安装或升级 pip,请从 official site 下载
get-pip.py然后运行以下命令:sudo python get-pip.py它将安装运行脚本的 python 版本的 pip。 -
那么,是mac还是ubuntu?在任何情况下,如果您不需要,我建议不要弄乱系统 Python,并查看
pyenv(它也默认安装pip) -
我假设你有 Python 2.X,就像你有 python3 一样,你也会有 pip3。如果您有 Python 2,那么安装 pip(而不是 pip3)更有意义,所以只需尝试“easy_install pip”
-
@doru 谢谢它的工作
标签: python python-3.x pip