参考
阿里巴巴开源镜像站

centos7装置pip并配置国内阿里镜像源

首先装置pip前须要装置epel-release

yum -y install epel-release


装置pip

yum -y install python-pip


查看pip版本

pip --version


配置阿里镜像源(批改pip.conf)

cd ~mkdir .pipcd .piptouch pip.confvi pip.conf


批改为以下并保留

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

 

实现