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.

EDIT:
The yum command output;

[root@local ~]# 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

My answer:


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

/srv/www/mirrors/epel/7/x86_64/p/python2-pip-8.1.2-5.el7.noarch.rpm

I would suggest that you try installing that.


View the full question and answer on Server Fault.

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