|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
各位大佬,我用树莓派的raspbian系统(就是一种linux系统)用pip3下载一个python包出现了一个问题,这个问题困扰我一个多星期了,想起鱼C还有一个linux的论坛,特来求救啊。
pi@raspberrypi:~ $ pip3 install rpiSht1x
Collecting rpiSht1x
Using cached rpiSht1x-1.2.tar.gz
Complete output from command python setup.py egg_info:
Downloading http://pypi.python.org/packages/ ... ibute-0.6.28.tar.gz
Traceback (most recent call last):
File "/tmp/pip-build-fzcvxt3o/rpiSht1x/distribute_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-build-fzcvxt3o/rpiSht1x/setup.py", line 2, in <module>
use_setuptools()
File "/tmp/pip-build-fzcvxt3o/rpiSht1x/distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/tmp/pip-build-fzcvxt3o/rpiSht1x/distribute_setup.py", line 124, in _do_download
to_dir, download_delay)
File "/tmp/pip-build-fzcvxt3o/rpiSht1x/distribute_setup.py", line 194, in download_setuptools
src = urlopen(url)
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 472, in open
response = meth(req, response)
File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
'http', request, response, code, msg, hdrs)
File "/tmp/pip-build-fzcvxt3o/rpiSht1x/setup.py", line 2, in <module>
use_setuptools()
File "/tmp/pip-build-fzcvxt3o/rpiSht1x/distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/tmp/pip-build-fzcvxt3o/rpiSht1x/distribute_setup.py", line 124, in _do_download
to_dir, download_delay)
File "/tmp/pip-build-fzcvxt3o/rpiSht1x/distribute_setup.py", line 194, in download_setuptools
src = urlopen(url)
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 472, in open
response = meth(req, response)
File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.5/urllib/request.py", line 510, in error
return self._call_chain(*args)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: SSL is required
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fzcvxt3o/rpiSht1x/
以上就是出现的问题,最关键的是urllib.error.HTTPError: HTTP Error 403: SSL is required。这个东西怎么解决啊?愿意有偿咨询。
File "/usr/lib/python3.5/urllib/request.py", line 510, in error |
|