1. 首页 >后端开发 >Python >

pip 常用镜像源设置

以下是常用的pip镜像源
永久使用中科大源的话

pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple

永久使用清华源的话

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

永久使用豆瓣源的话

pip config set global.index-url https://pypi.douban.com/simple/

永久使用华为源的话

pip config set global.index-url https://mirrors.huaweicloud.com/repository/pypi/simple