错误:There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate

错误:There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed(_ssl.c:748) - skipping

解决方案:添加–trusted-host

pip install 要安装的依赖包名 -i http://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

在系统目录C:\Users\用户\AppData\Roaming新建pip文件夹,在pip文件夹下新建pip.ini文件,并写入如下配置:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com

即可不用添加–trusted-host

你可能感兴趣的:(python)