1 Win+R, 输入%APPDATA%
2 新建目录pip
3 新建文件pip.ini
4 编辑文件内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
proxy = http://XXXXXX
[install]
use-mirrors = true
mirrors = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn/simple
5 常会pip source
豆瓣:https://pypi.douban.com/simple
阿里:https://mirrors.aliyun.com/pypi/simple
中科大:https://pypi.mirrors.ustc.edu.cn/simple
清华:https://pypi.tuna.tsinghua.edu.cn/simple