我运行 sudo pip install git-review
,并收到以下消息:
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
有人对此有任何想法吗?
原文由 Sai Wai Maung 发布,翻译遵循 CC BY-SA 4.0 许可协议
我知道这是一个旧线程,但我今天遇到了这个问题并想分享我对这个问题的解决方案,因为我没有在 SO 的其他地方看到这个解决方案。
我的环境:Ubuntu 12.04.5 LTS 上的 Python 2.7.12⁄2.7.14 在 virtualenv 中,pip 版本 1.1。
我的错误:
在控制台中:
在 ~/.pip/pip.log 中:
我很好奇,因为我已经在脚本中毫无问题地运行这些相同的命令大约一年了。
这修复了它:
(注意https)