centos7 install python-pip

When installing python-pip using centos7's package management program yum, an error will be reported:

 

No package python-pip available.
Error: Nothing to do

Says that there is no python-pip package to install.

 

This is because of the derived distributions such as centos, their sources sometimes lag in content updates, or sometimes some extended sources are not available at all.

So when using yum to search for python-pip, it will say that the package is not found. So in order to be able to install these packages, the extension source EPEL needs to be installed first.

EPEL (http://fedoraproject.org/wiki/EPEL) is a project created by the Fedora community to provide high-quality software packages for RHEL and derivative distributions such as CentOS, Scientific Linux, etc.

First install the epel extension source:

 

sudo yum -y install epel-release

Then install python-pip

 

 

sudo yum -y install python-pip

Don't forget to clear the cache after installation

 

 

sudo yum clean all

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326261782&siteId=291194637