无法安装分发:pypi.python.org 拒绝 http
Cannot install distribute: pypi.python.org rejecting http
这在昨天有效(我相当确定)并且直到今天才开始失败。 ideas/workaround 我可以做什么来安装这个包?
执行 curl 获取此 URL 清楚地表明服务器只是拒绝“需要 403 SSL”,甚至没有重定向到 https:// url。
# pip install hotqueue
Collecting hotqueue
Using cached 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
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-wZ7k8g/hotqueue/setup.py", line 7, in <module>
from distribute_setup import use_setuptools; use_setuptools()
File "/tmp/pip-build-wZ7k8g/hotqueue/distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/tmp/pip-build-wZ7k8g/hotqueue/distribute_setup.py", line 124, in _do_download
to_dir, download_delay)
File "/tmp/pip-build-wZ7k8g/hotqueue/distribute_setup.py", line 193, in download_setuptools
src = urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, 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-wZ7k8g/hotqueue/
我认为这里有答案:
这是他们提供的link:https://mail.python.org/pipermail/distutils-sig/2017-October/031712.html
简短回答:2017 年 10 月 26 日,pypi 不再支持 http。
这在昨天有效(我相当确定)并且直到今天才开始失败。 ideas/workaround 我可以做什么来安装这个包?
执行 curl 获取此 URL 清楚地表明服务器只是拒绝“需要 403 SSL”,甚至没有重定向到 https:// url。
# pip install hotqueue
Collecting hotqueue
Using cached 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
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-wZ7k8g/hotqueue/setup.py", line 7, in <module>
from distribute_setup import use_setuptools; use_setuptools()
File "/tmp/pip-build-wZ7k8g/hotqueue/distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/tmp/pip-build-wZ7k8g/hotqueue/distribute_setup.py", line 124, in _do_download
to_dir, download_delay)
File "/tmp/pip-build-wZ7k8g/hotqueue/distribute_setup.py", line 193, in download_setuptools
src = urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, 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-wZ7k8g/hotqueue/
我认为这里有答案:
这是他们提供的link:https://mail.python.org/pipermail/distutils-sig/2017-October/031712.html
简短回答:2017 年 10 月 26 日,pypi 不再支持 http。