首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pip安装treq失败

pip安装treq失败
EN

Stack Overflow用户
提问于 2013-11-12 20:10:34
回答 1查看 1.8K关注 0票数 1

根据http://treq.readthedocs.org/en/latest/,可以使用pip安装treq,但是它失败了。我可以使用tar文件安装treq,但我想知道为什么会失败,因为http://pypi.python.org/simple/treq/有0.1.0和0.2.0。

代码语言:javascript
复制
$ sudo pip install treq
Downloading/unpacking treq
  Cannot fetch index base URL http://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement treq
No distributions at all found for treq
Storing complete log in <cut>.pip/pip.log
$ pip search treq
megrok.strictrequire      - Checks that all grokked "view-like" components
                            require a permission.
streql                    - Constant-time string comparison
trequests                 - A Tornado async HTTP/HTTPS client adaptor for
                            python-requests
treq                      - A requests-like API built on top of twisted.web's
                            Agent
repoze.bfg.restrequest    - a REST aware Request for implementing RESTful
                            applications with repoze.bfg

$

只是试图安装从tarfile,它也找不到扭曲,所以想知道是否有基本的问题,皮普.

代码语言:javascript
复制
$ sudo python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
<snip>
Extracting treq-0.2.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding treq 0.2.0 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/treq-0.2.0-py2.7.egg
Processing dependencies for treq==0.2.0
Searching for Twisted>=12.1.0
Reading http://pypi.python.org/simple/Twisted/
Download error on http://pypi.python.org/simple/Twisted/: timed out -- Some packages      may not be found!
Reading http://pypi.python.org/simple/Twisted/
Download error on http://pypi.python.org/simple/Twisted/: timed out -- Some packages     may not be found!
Couldn't find index page for 'Twisted' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error on http://pypi.python.org/simple/: timed out -- Some packages may not be found!
No local packages or download links found for Twisted>=12.1.0
error: Could not find suitable distribution for Requirement.parse('Twisted>=12.1.0')
$
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-11-12 21:35:40

错误消息如下:

Download error on http://pypi.python.org/simple/Twisted/: timed out -- Some packages may not be found!

您是否检查过防火墙是否阻止了对PyPI的访问?

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19938937

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档