# 创建.pip文件夹
mkdir ~/.pip
# 创建pip.conf配置文件
vi ~/.pip/pip.conf
# 添加pip源地址为阿里云
[global]
index-url=http://mirrors.aliyun.com/pypi/simple
[install]
trusted-host=mirrors.aliyun.com
10-16
705
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-23
1089
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)