鱼C论坛

 找回密码
 立即注册
查看: 536|回复: 3

求救阿

[复制链接]
最佳答案
0 
发表于 2018-4-6 20:05:25 | 显示全部楼层 |阅读模式

马上注册加入鱼C,享用更多服务吧^_^

您需要 登录 才可以下载或查看,没有帐号?立即注册

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
最佳答案
0 
 楼主| 发表于 2018-4-6 20:11:16 | 显示全部楼层
救命阿
最佳答案
54 
发表于 2018-4-6 20:18:04 | 显示全部楼层
最佳答案
41 
发表于 2018-4-27 11:50:42 | 显示全部楼层
1. 在命令中加上--no-check-certificate
2.可能是要访问的网页https加密,你试试:
sudo wget  https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
tar -xvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
sudo python3 setup.py build
pip3 install rpiSht1x
sudo python setup.py install
*滑块验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

小甲鱼强烈推荐上一条 /1 下一条

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备11014136号 )

GMT+8, 2018-7-17 02:44

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表