- 先安装EPEL
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- 备份epel.repo和epel-testing.repo
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.back
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.back
- 重新安装epel.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
- 再运行如下命令,安装pip3
yum install python3-pip