阿里云开源镜像站
在阿里镜像上说的很清楚:
配置方法
a. 找到下列文件
~/.pip/pip.conf
b. 在上述文件中添加或修改:
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
还有更简便的方法:使用命令:
pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
查看当前源:
pip3 config list