前言
更换pip镜像源
全局配置
清华大学
1
| pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
中国科技大学
1
| pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
|
华中理工大学
1
| pip config set global.index-url http://pypi.hustunique.com
|
山东理工大学
1
| pip config set global.index-url http://pypi.sdutlinux.org
|
阿里云
1
| pip config set global.index-url http://mirrors.aliyun.com/pypi/simple
|
豆瓣
1
| pip config set global.index-url https://pypi.douban.com/simple
|
临时配置
<package>
:模块名
1
| pip install <package> -i <url>
|
完成
参考文献
哔哩哔哩——图灵学院教程
CSDN——宛宛心里的月亮
博客园——木头侠
CSDN——仲浩的博客