Согласно http://treq.readthedocs.org/en/latest/, treq можно установить с помощью пипса, однако он не работает. Я могу установить treq, используя tar-файл, но мне интересно, почему это происходит с http://pypi.python.org/simple/treq/ с 0.1.0 и 0.2.0.pip install treq failing
$ 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
$
Просто попытался установить с и файл обработан он не может найти витую либо так интересно, если есть основная проблема с пип ...
$ 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')
$
Для чего это стоит: никогда не делайте 'sudo pip install'. Либо используйте что-то, что позволит вам устанавливать материал в место вне системы, например 'virtualenv' или' pip install -user', или использовать что-то, что предназначено для интеграции с вашей системой, например 'pypi-install'. – Glyph
Спасибо за обратную связь. Я попробовал pypi-install treq, и это тоже не сработало. –
Работает только для меня. Убедитесь, что брандмауэр/антивирус не блокирует его? – jazzpi