Collecting rsa==3.1.1 (from -r /racetrack/.requirements.txt (line 41))
eval (python -m virtualfish)
Downloading rsa-3.1.1.tar.gz
Complete output from command python setup.py egg_info:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gz
Traceback (most recent call last):
File "/usr/lib/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
原文由 nehem 发布,翻译遵循 CC BY-SA 4.0 许可协议
解决方案:升级到最新版本的库。
这一切都从这里开始,突然(2017 年 10 月)Distutils 团队决定撤销对非 https 请求的支持,而不用担心破坏众多 python 库早期版本的向后兼容性。有点不专业,但这是 Python 世界。
所以这里是修复,只需在任何库(
rsa==3.4.2
nltk==3.2.5
等)替代解决方案:分叉(或本地复制)repo 的版本并将
http
url 修改为https
尽管如此,请注意您是否在维护另一个项目时执行此操作,因为您正在升级的依赖项可能与作者预期的原始库不兼容,例如在我的上下文中
rsa
在另一个库下使用为一种依赖。因此,解决方案是升级父库,以便自动解决此问题。