gpt4 book ai didi

python - 在 macOS 上安装 pip 不起作用(不再)

转载 作者:太空狗 更新时间:2023-10-29 20:19:38 25 4
gpt4 key购买 nike

我遵循了有关如何在 macOS 上安装 pip 的在线说明(例如 thisthisthis)。

我看起来很简单,但它不适合我。

我的 python --version 是 2.7.10。

当我运行 sudo easy_install pip 时,我得到:

$ 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

关于python - 在 macOS 上安装 pip 不起作用(不再),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47997164/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com