why yum could not find the python-pip packages on some PCs

Roger asked:

I got a very strange problem and cannot figure out why.

When I run yum info python-pip command on some CentOS 7 machines, it returns Error: No matching Packages to list. But, I used to install python-pip on without problem until now.

epel repository is enabled:

epel/x86_64                  Extra Packages for Enterprise Linux 7 - x86_64      11,016

Strangely, the same command can run successfully on other CentOS 7 servers and returns the information of the package.

CentOS release: CentOS Linux release 7.2.1511 (Core)
epel-release: 7.6 or 7.8 (I tried both.)

Please someone could explain what is wrong the EPEL repository.

The yum command output;

[[email protected] ~]# yum info python-pip  
Loaded plugins: fastestmirror, langpacks  
Loading mirror speeds from cached hostfile  
 * epel: fedora.mirror.serversaustralia.com.au  
 * rpmforge: mirror.ventraip.net.au  
Error: No matching Packages to list

It may be just because of the package has been pulled out from the repository. But I still don’t understand why some servers are able to see and download the package but others not.
I have run through the commands below on both servers and the check-update shows that the epel repository is from fedora.uberglobalmirror.com, which is same on both servers.

yum clean all
yum check-update
yum info python-pip`

My answer:

Hmm. A careful examination of my EPEL mirror shows that the package is now named python2-pip beginning with EPEL 7.


I would suggest that you try installing that.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.