关于pip install 安装时出现Could not fetch URL https://pypi.python.org/simple/pool/: There was a problem

pip install 安装第三方插件是出现 Could not fetch URL https://pypi.python.org/simple/pool/: There was a problem confirming ssl certificate问题

解决思路:
进入命令行创建pip文件夹
PS C:\Users\kaiqi She> md pip

目录: C:\Users\kaiqi She

Mode LastWriteTime Length Name


d----- 2018/7/10 10:55 pip

在该文件夹下创建pip.ini,pip.ini配置内容如下:

[global]

index-url=http://mirrors.aliyun.com/pypi/simple/

[install]

trusted-host=mirrors.aliyun.com

还需要配置一下环境变量
%HOMEPATH%\pip\pip.ini添加到path中
在用pip下载第三方插件即可。

另一种方法:
pip install requests -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com


版权声明:本文为qq_36973540原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。