点连接失败:无法获取索引基URL http://pypi.python.org/simple/ [英] pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/

查看:1369
本文介绍了点连接失败:无法获取索引基URL http://pypi.python.org/simple/的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行 sudo pip install git-review ,并获得以下消息:

找不到满足需求git-review 
没有任何发行版可用于git-review
存储完整日志/home/sai/.pip/pip.log

有没有人对此有所了解?

解决方案

编辑:



当前版本的 PIP 不再有这个问题。截至目前,版本: 7.1.2 是当前版本。这是 PIP 链接:



https://pypi.python.org/pypi/pip

原始修正:



当试图使用 pip == 1.5.4

$ b $时, b

这是与PIP和Python的PYPI信任SSL证书相关的问题。如果您在Mac OS X中的PIP日志中查找,请访问 /Users/username/.pip/pip.log ,它会提供更多详细信息。

我的解决方法是在几个小时的尝试不同的东西之后让PIP备份并运行,无论是在Python中的 site-packages virtualenv 或正常的 site-packages 中,摆脱当前的PIP版本。对我来说,我有 pip == 1.5.4



我删除了PIP目录和PIP蛋文件。然后我跑了

  easy_install pip == 1.2.1 

这个版本的PIP没有SSL问题,然后我就可以运行普通的 pip install -r requirements.txt 在我的virtualenv中设置我想要的所有包列在我的 requirements.txt 文件中。



这也是我发现这个谷歌集团的几个人通过这个问题的推荐技巧,我发现:
$ b

https://groups.google.com/forum/#!topic/beagleboard/aSlPCNYcVjw


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?

解决方案

EDIT:

The current version of PIP no longer has this issue. As of right now, version: 7.1.2 is the current version. Here is the PIP link:

https://pypi.python.org/pypi/pip

ORIGINAL FIX:

I got this issue when trying to use pip==1.5.4

This is an issue related to PIP and Python's PYPI trusting SSL certificates. If you look in the PIP log in Mac OS X at: /Users/username/.pip/pip.log it will give you more detail.

My workaround to get PIP back up and running after hours of trying different stuff was to go into my site-packages in Python whether it is in a virtualenv or in your normal site-packages, and get rid of the current PIP version. For me I had pip==1.5.4

I deleted the PIP directory and the PIP egg file. Then I ran

easy_install pip==1.2.1  

This version of PIP doesn't have the SSL issue, and then I was able to go and run my normal pip install -r requirements.txt within my virtualenv to set up all packages that I wanted that were listed in my requirements.txt file.

This is also the recommended hack to get passed the issue by several people on this Google Group that I found:

https://groups.google.com/forum/#!topic/beagleboard/aSlPCNYcVjw

这篇关于点连接失败:无法获取索引基URL http://pypi.python.org/simple/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆