pip设置阿里云镜像

编辑pip.conf文件 linux位置 ~/.config/pip/pip.conf windows位置 C:/User/用户名/pip/pip.ini macOS位置: ~/.pip/pip.conf

配置内容如下:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com