简体   繁体   English

无法安装分发:pypi.python.org 拒绝 http

[英]Cannot install distribute: pypi.python.org rejecting http

This worked yesterday (I am fairly sure) and started failing only today.这在昨天起作用(我很确定)并且直到今天才开始失败。 Any ideas/workaround on what I can do to install this package?关于我可以做什么来安装这个包的任何想法/解决方法?

Doing curl to fetch this URL clearly shows the server is just rejecting with " 403 SSL is required" and not even redirecting to the https:// url.执行 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/

I think this is answered here: Getting error 403 while installing package with pip我认为这在这里得到了回答: 使用 pip 安装软件包时出现错误 403

Here is the link they provided: https://mail.python.org/pipermail/distutils-sig/2017-October/031712.html这是他们提供的链接: https : //mail.python.org/pipermail/distutils-sig/2017-October/031712.html

Short answer: http support dropped from pypi on Oct 26, 2017.简短回答:http 支持于 2017 年 10 月 26 日从 pypi 中删除。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 pip 连接失败:无法获取索引基 URL http://pypi.python.org/simple/ - pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/ 无法安装Django-无法获取索引基本URL https://pypi.python.org/simple/ - Can't install Django - Cannot fetch index base URL https://pypi.python.org/simple/ 与pypi.python.org的连接超时 - Connection to pypi.python.org timed out Python pip错误:“无法获取索引基URL https://pypi.python.org/simple/” - Python pip error: “Cannot fetch index base URL https://pypi.python.org/simple/” 无法获取索引库 URL https://pypi.python.org/simple/ ~ 安装后 Python 3 OS X - Cannot fetch index base URL https://pypi.python.org/simple/ ~ After Installing Python 3 OS X 为什么pypi.python.org/simple上有一些软件包,但是没有页面? - Why are some packages on pypi.python.org/simple, but have no page? curl https://pypi.python.org/simple/pip不返回任何内容 - curl https://pypi.python.org/simple/pip returns nothing 配置pip以从pypi.python.org获取丢失的软件包 - configure pip to get missing package from pypi.python.org 我的第一个自述文件没有在 pypi.python.org 上格式化 - My rst README is not formatted on pypi.python.org http://pypi.python.org/simple/PACKAGE上的下载错误:[Errno -5]没有与主机名相关的地址-Python库HTTPLib问题? - Download error on http://pypi.python.org/simple/PACKAGE: [Errno -5] No address associated with hostname - Python Library HTTPLib Issue?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM