python安装镜像源
[global] index-url = https://pypi.douban.com/simple
# 如果使用http链接,则需要trusted-host参数
[install] trusted-host = mirrors.aliyun.com
**windows**
* win+r 打开命令面板
* %HOMEPATH% 进入配置 创建文件夹 pip 然后创建 pip.ini
* ```shell
[global]
timeout = 6000
index-url = https://pypi.douban.com/simple
trusted-host = mirrors.aliyun.com
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
[global]
timeout = 6000
index-url = https://pypi.douban.com/simple
trusted-host = mirrors.aliyun.com
1
2
3
4
2
3
4
编辑 (opens new window)
上次更新: 2024-05-21, 09:50:09