windows设置镜像源
路径C:\Users\知否
- 创建pip文件夹下pip.ini
1
2
3
4
5
6[global]
index-url=https://mirrors.aliyun.com/pypi/simple/
timeout = 6000
[install]
trusted-host=mirrors.aliyun.com
disable-pip-version-check = true
Linux设置镜像源
1 | mkdir ~/.pip |
镜像源
1 | https://pypi.tuna.tsinghua.edu.cn/simple |