Yum install python-pip: no python-pip packages available

After upgrading python from 2.5 to 2.7.6 in RedHat 4.2, I tried using yum to install python pip. However, an error occurs:

[gz@pl1 ~]$ sudo yum install python-pip
updates-newkey                                           | 2.3 kB     00:00
fedora                                                   | 2.1 kB     00:00
updates                                                  | 2.6 kB     00:00
Setting up Install Process
Parsing package install arguments
No package python-pip available.
Nothing to do 

I wonder why? Some say I should

enable EPEL repo

first, but how?

Unfortunately, even if I manually "python get-pip.py", it does not work either. Mistake:

Traceback (most recent call last):
File "get-pip.py", line 7219, in <module>
  import bz2
ImportError: No module named bz2

However, bz2 was there which bzip2-devel / usr / bin / which: no bzip2-devel in (/ usr / kerberos / bin: / usr / local / bin: / bin: / usr / bin: / home / gz / bin)

And my link comes from: http://www.pip-installer.org/en/latest/installing.html

Thanks for any feedback!

+4
source share
1 answer

, RHEL 4.2. , RPM EPEL, info repo; , 32- RHEL 4.2, , , http://dl.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm ( 64- powerpc - , http://dl.fedoraproject.org/pub/epel/4/ )

( RPM, )

+1

All Articles