Ubuntu下Python修改镜像路径,避免pip安装超时问题

创建ini文件

cd ~
mkdir .pip
cd .pip
touch pip.config

编辑pip.conf 文件,写入文本如下

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

posted on 2025-10-14 14:53  WinterLii  阅读(4)  评论(0)    收藏  举报

导航