请输入
菜单

Q8-如何永久设置国内镜像源

设置永久镜像源之后,当安装第三方库时,会默认从国内镜像源地址进行下载安装,安装速度快。

1、找到客户端软件的安装目录。

language 复制代码
D:\steamcode\resources\app\python-env\win

2、先创建一个txt记事本文件写入如下代码。

language 复制代码
[global]
timeout = 6000
index-url = https://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com

3、重命名txt文件为:pip.ini

最近修改: 2025-07-08