1.安裝pip
yum install python-pip
yum install python3-pip
2.查看pip.ini配置文件
find / -name pip.conf
3.編輯pip.conf配置文件.添加如下內容
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

4.測試pip下載
可以看到下載源已修改成功
1.安裝pip
yum install python-pip
yum install python3-pip
2.查看pip.ini配置文件
find / -name pip.conf
3.編輯pip.conf配置文件.添加如下內容
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

4.測試pip下載
可以看到下載源已修改成功