1.点击此电脑,在最上面的的文件夹窗口输入 : %APPDATA%
2.按回车跳转到以下目录,新建pip文件夹
3.创建pip.ini文件
4.打开文件夹,输入以下内容,关闭即可(注意:源镜像可替换)
[global] timeout = 6000 index-url = https://pypi.tuna.tsinghua.edu.cn/simple trusted-host = pypi.tuna.tsinghua.edu.cn
5.国内源镜像有:
V2EX:http://pypi.v2ex测试数据/simple 豆瓣:http://pypi.douban测试数据/simple 中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple 清华:https://pypi.tuna.tsinghua.edu.cn/simple
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did171606