python永久更新配置镜像源

1、永久更新镜像源,将国内镜像源添加入pip.ini

【一般加阿里云源就可以了】

添加阿里云源

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

清华源:

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

中科大源:

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

豆瓣源:

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

搜狐源:

pip config set global.index-url http://mirrors.sohu.com/Python/

华中科大源:

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

山东理工大:

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

posted @ 2023-06-25 01:53  CiscoLee  阅读(15)  评论(0编辑  收藏  举报