文件夹窗口内输入:%APPDATA%
回车后随即跳转到一个目录,然后自行创建pip 文件夹,在文件夹内,创建pip.ini文件,内容为:
[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn
上述使用的是清华的源镜像,还可以使用以下的国内源镜像:
V2EX:http://pypi.v2ex.com/simple
豆瓣:http://pypi.douban.com/simple
中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple
清华:https://pypi.tuna.tsinghua.edu.cn/simple