HTTP 错误 403:尝试使用 pip 安装 gevent-psycopg2 时需要 SSL

HTTP Error 403: SSL is required on trying to install gevent-psycopg2 with pip

在 linux 上尝试使用 pip 安装 gevent-psycopg2 使用此命令:

pip install gevent-psycopg2</pre>
我收到这个错误 

Collecting gevent-psycopg2
  Using cached https://files.pythonhosted.org/packages/72/11/aa122be6a3bdbc7d16752c5e6771b362ca7ebaef0f52113e036062dd2c12/gevent-psycopg2-0.0.3.tar.gz
    Complete output from command python setup.py egg_info:
    Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.24.tar.gz
    Traceback (most recent call last):
      File "", line 1, in 
      File "/tmp/pip-install-q1DRBs/gevent-psycopg2/setup.py", line 5, in 
        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/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-install-q1DRBs/gevent-psycopg2/
  • 我已经将 pip 升级到 19.0.3 ,我的 python 版本是 2.7.12+
  • 我尝试从 git 下载存档并使用 setup.py 安装它,但我最终遇到了类似的错误。
  • 我也已经尝试使用 git 和
  • 安装
pip install git+git:https://github.com/zacharyvoase/gevent-psycopg2

我不知道我错过了什么? 还是有另一种从源安装的方法?

谢谢

The project seems to be at the early stage of development (version 0.0.3) but already abandoned (last release in 2012). The installation code uses distribute which it tries to download from http://pypi.python.org/packages/source/d/distribute/;即使代码成功连接到站点,它也会收到错误 404。

A​​t the git repository there is the hint: "Obsolete; use https://bitbucket.org/dvarrazzo/psycogreen/ instead." The named package 似乎更加详尽(版本 1.0.1)和新鲜(2018 年 12 月)。所以从

开始
pip install psycogreen