pip配置国内镜像源

使用国内的中科大、清华大学、阿里云的pip镜像源速度快太多了

# 配置中科大pip镜像源
pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
# 配置清华大学pip镜像源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 配置阿里云pip镜像源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 检查是否配置成功
pip config list
# 取消配置
pip config unset global.index-url


更新日志

  • 20250206:初稿