# 永久設置阿里云的国内源【如果是阿里云的ecs,推荐使用】
pip config set global.trusted-host mirrors.aliyun.com
pip config set global.index-url https://mirrors.aliyun.com/simple
# 永久設置清华大学的国内源【如果是阿里云的ecs,推荐使用】
pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
https://blog.youkuaiyun.com/weixin_42081389/article/details/112389876
pip永久设置国内源

本文详细介绍了如何永久设置pip使用阿里云和清华大学提供的国内源,包括设置受信任主机和索引URL的具体命令,旨在加速Python包的安装过程。
966

被折叠的 条评论
为什么被折叠?



