在 macOS 上安装 pip 不再起作用

2024-03-22

我按照在线说明进行安装pip在 macOS 上(例如this https://ahmadawais.com/install-pip-macos-os-x-python/, this http://softwaretester.info/install-and-upgrade-pip-on-mac-os-x/, and this https://stackoverflow.com/a/39256229/1971013).

我的一切看起来很简单,但这对我不起作用。

My python --version是 2.7.10。

当我跑步时sudo easy_install pip I get:

$ sudo easy_install pip
Password:
Searching for pip
Reading http://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')

知道如何解决或解决这个问题吗?


您可能有 pip3。用它来升级 pip。

pip3 install --upgrade pip
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 macOS 上安装 pip 不再起作用 的相关文章

随机推荐