python安装reportlab

python3.6安装reportlab的时候报错,错误信息如下:

Collecting reportlab
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)’: /simple/reportlab/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)’: /simple/reportlab/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)’: /simple/reportlab/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)’: /simple/reportlab/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)’: /simple/reportlab/
Could not fetch URL https://pypi.org/simple/reportlab/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/reportlab/ (Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)) - skipping
Could not find a version that satisfies the requirement reportlab (from versions: )
No matching distribution found for reportlab
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)) - skipping

意思大概是ssl证书的原因,使用下面的方式就可以安装了.

pip install reportlab -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

PS C:\Users\Administrator\Desktop\L1-U5-L3> pip install reportlab -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
Collecting reportlab
  Downloading http://pypi.doubanio.com/packages/ac/2d/f25099332ac11ade06321690c3343fc3d46e7b935dc37f672b154940fc9f/reportlab-3.5.13-cp36-cp36m-win_amd64.whl (2.2MB)
    100% |████████████████████████████████| 2.2MB 9.3MB/s
Collecting pillow>=4.0.0 (from reportlab)
  Downloading http://pypi.doubanio.com/packages/ec/ca/7af5b6628ecf770645f8cc3c9da3c2bb5c5ffc7384a9ff0666fdb818b4d5/Pillow-5.4.1-cp36-cp36m-win_amd64.whl (1.9MB)
    100% |████████████████████████████████| 1.9MB 9.3MB/s
Installing collected packages: pillow, reportlab
Successfully installed pillow-5.4.1 reportlab-3.5.13
You are using pip version 18.0, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
PS C:\Users\Administrator\Desktop\L1-U5-L3>

参考:https://blog.csdn.net/m0_37690319/article/details/79945809

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值