pip 连接失败:无法获取索引基 URL http://pypi.python.org/simple/ [英] pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
问题描述
我运行 sudo pip install git-review
,并得到以下消息:
I run sudo pip install git-review
, and get the following messages:
Downloading/unpacking git-review
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement git-review
No distributions at all found for git-review
Storing complete log in /home/sai/.pip/pip.log
有人对此有任何想法吗?
Does anyone has any idea about this?
推荐答案
我知道这是一个旧线程,但我今天遇到了这个问题,想分享我对这个问题的解决方案,因为我还没有在其他地方看到这个解决方案
I know this is an old thread, but I encountered this issue today and wanted to share my solution to the problem because I haven't seen this solution elsewhere on SO.
我的环境:Python 2.7.12/2.7.14 on Ubuntu 12.04.5 LTS in virtualenv, pip version 1.1.
My environment: Python 2.7.12/2.7.14 on Ubuntu 12.04.5 LTS in a virtualenv, pip version 1.1.
我的错误:
pip install nose
在控制台中:
Cannot fetch index base URL http://pypi.python.org/simple/
在 ~/.pip/pip.log 中:
in ~/.pip/pip.log:
Could not fetch URL http://pypi.python.org/simple/: HTTP Error 403: SSL is required
我很好奇,因为我已经在脚本中运行这些相同的命令大约一年没有问题了.
Curious for me because I had been running these same commands in a script without issue for about a year.
这修复了它:
pip install --index-url=https://pypi.python.org/simple/ nose
(注意 https)
希望这对某人有所帮助!
Hope this helps someone!
这篇关于pip 连接失败:无法获取索引基 URL http://pypi.python.org/simple/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!