python安装库的时候报证书错误
2019-09-26 本文已影响0人
seeiy
问题背景:
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirm之类的一大串,大概意思就是ssl证书不可信
解决方法:
不修改配置文件的情况下使用-i
参数指定安装源
python3 -m pip install tqdm -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
国内可用的源:
1)http://mirrors.aliyun.com/pypi/simple/ 阿里云