安装hotqueue,设置版本为0.2.7
pip install hotqueue==0.2.7
报错:
Collecting hotqueue==0.2.7
Using cached https://files.pythonhosted.org/packages/47/de/82a9c325689ed0595f5ad7dcea7f8822402647c99f0e3bf9d1d089d62fb4/hotqueue-0.2.7.tar.gz
Complete output from command python setup.py egg_info:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
dj-database-url==0.4.2
Traceback (most recent call last):
File "" , line 1, in
File "/tmp/pip-build-t9Wb7R/hotqueue/setup.py", line 7, in
from distribute_setup import use_setuptools; use_setuptools()
File "distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "distribute_setup.py", line 124, in _do_download
to_dir, download_delay)
File "distribute_setup.py", line 193, in download_setuptools
src = urlopen(url)
File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: SSL is required
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-t9Wb7R/hotqueue/
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
解决方案:
因为pypi问题导致,解决方案是安装0.2.8版本,这个版本跟0.2.7是一样的
pip install hotqueue==0.2.8
https://github.com/richardhenry/hotqueue/issues/21