gpt4 book ai didi

python - easy_install pip == [Errno 8] 提供的节 pip 名或服务名,或未知

转载 作者:太空狗 更新时间:2023-10-29 19:37:50 24 4
gpt4 key购买 nike

我在为通过 pythonbrew 安装的 python 2.7.3 安装 pip 时遇到问题:

pythonbrew update --master
pythonbrew install 2.7.3 --force

当试图从 pip.openplans.org 获取 pip 时,这在最后阶段挂起时失败了:

Installed /Users/andrei/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/distribute-0.6.28-py2.7.egg
Processing dependencies for distribute==0.6.28
Finished processing dependencies for distribute==0.6.28
After install bootstrap.
Don't have permissions to write /Users/andrei/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info, skipping
Creating /Users/andrei/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info
Creating /Users/andrei/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/setuptools.pth
Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://pip.openplans.org
Download error on http://pip.openplans.org: [Errno 8] nodename nor servname provided, or not known -- Some packages may not be found!
Reading http://pip.openplans.org
Download error on http://pip.openplans.org: [Errno 8] nodename nor servname provided, or not known -- Some packages may not be found!
Reading http://pip.openplans.org
...

运行 easy_install pip 也会导致同样的错误。当然,我仍然可以克隆 pip 存储库并手动安装它,但很高兴知道为什么它会通过 easy_install 失败。有什么想法吗?


更新:

$ host pip.openplans.org
pip.openplans.org is an alias for puffin.oddbird.net.
puffin.oddbird.net has address 173.203.85.138

最佳答案

我遇到了类似的问题;该命令在 iTerm2 中失败,但在默认的 OS X 终端中没有。重启 iTerm2 解决了这个问题。

关于python - easy_install pip == [Errno 8] 提供的节 pip 名或服务名,或未知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11931530/

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