why yum could not find the python-pip packages on some PCs
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.
Related videos on Youtube
Roger
Updated on September 18, 2022Comments
-
Roger over 1 year
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
EDIT2: 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`
-
Roger over 7 yearsthanks Michael, the python2-pip seems doing the job. I just don't understand why some servers can see the package but others not. I was wondering I might miss something.
-
Roger over 7 yearsIt looks like the package has been pulled out. but why some servers can still see it or able to install it? I have done "yum clean all" to clean all the caches.
-
Aaron Copley over 7 yearsHuh.. Good find. I didn't notice that. I definitely have a python-pip in my local mirror that keeps old copies. It's in Koji as python-pip, too.
-
Aaron Copley over 7 yearsBest guess is not all mirrors are configured the same way and caching.
-
Michael Hampton over 7 years@AaronCopley I don't have space to keep old copies on my mirror, but I don't doubt it. Renaming all the
python-
packages topython2-
has been in progress for quite a while now, as Python 3 will finally become the default Python in RHEL 8. But since EPEL packages are often maintained in sync with corresponding Fedora packages, most of which have already been renamed...