python - 命令“python setup.py egg_info”在 /tmp/pip-install-8ryfpf0v/unroll/ 中失败,错误代码为 1
问题描述
有人可以帮我吗,我不知道该怎么做才能解决这个问题
student@jethost:~$ pip install unroll
Collecting unroll
Using cached https://files.pythonhosted.org/packages/fe/3c/124bdf4276e582c8e4e23ce27c4462a259f6608df8e550d30f003f2b4189/unroll-0.1.0.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 "/home/student/anaconda3/lib/python3.6/site-packages/ez_setup.py", line 143, in use_setuptools
raise ImportError
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-8ryfpf0v/unroll/setup.py", line 2, in <module>
ez_setup.use_setuptools()
File "/home/student/anaconda3/lib/python3.6/site-packages/ez_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/student/anaconda3/lib/python3.6/site-packages/ez_setup.py", line 124, in _do_download
to_dir, download_delay)
File "/home/student/anaconda3/lib/python3.6/site-packages/ez_setup.py", line 193, in download_setuptools
src = urlopen(url)
File "/home/student/anaconda3/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/home/student/anaconda3/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/home/student/anaconda3/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/home/student/anaconda3/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/home/student/anaconda3/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/home/student/anaconda3/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: SSL is required
----------------------------------------
命令“python setup.py egg_info”在 /tmp/pip-install-8ryfpf0v/unroll/ 中失败,错误代码为 1
解决方案
https://pypi.org/project/unroll/#history — last release was in 2014. ez_setup.use_setuptools
also was deprecated from setuptools
many years ago (it was so long ago I don't remember when). A bug report was opened in 2017 — still hasn't got any replies from the author. The code seems too old and abandoned, and I'm sure it doesn't work with Python 3.
推荐阅读
- javascript - 如何在类方法中处理 redux 道具
- android - 无法在 Android Studio 模拟器中加载应用程序
- javascript - 如何在ngrx/effect(redux-observable)中调度多个动作?
- python - 一个函数在调用时只是跳过执行——虽然没有调试器错误
- android - 如何创建列表项提升并成为详细信息屏幕的父子转换
- visual-studio - Xamarin Forms Visual Studio 未部署
- java - Wear Google 身份验证所需的最低 SDK
- webpack - 如何通过 webpack 4 压缩图像
- angular - RXJS - Angular - 取消订阅主题
- javascript - 函数 createIdentityMatrix(a,b)