-3

Does installing Python2.7.10 in red hat 4.1 having python 2.4.3 already installed causes problem ? need to install CFFI through PIP command. But it says bash :pip: command not found and Yum module not found.

Any ways to overcome this issue.

Thanks in advance.

Ash
  • 809
  • 1
  • 8
  • 14
  • Unless you change the system default python then it does not matter if you have 10000 versions of python installed, you may find virtualenv or pyenv to be a better solution though – Padraic Cunningham Dec 17 '15 at 12:56

1 Answers1

0

For Installing python alongside your default one, check this question.

But for installing pip, you can follow as below:

easy_install pip
Community
  • 1
  • 1
Ali Nikneshan
  • 3,500
  • 27
  • 39
  • Is it possible to install `pip` using `yum`. – Kenly Dec 17 '15 at 13:14
  • No, python-pip package included in EPEL 5,6. [check this](http://python-packaging-user-guide.readthedocs.org/en/latest/install_requirements_linux/#centos-rhel) – Ali Nikneshan Dec 17 '15 at 13:16
  • @padraic : sorry i think that i have changed the system python so that my repositories gets deleted or may be not supporting to python 2.7. Any suggestions to reset the default python ? – Ash Dec 17 '15 at 13:24
  • search in SO, for recovering python, if nothing found, ask again. – Ali Nikneshan Dec 17 '15 at 13:25
  • when i do any yum command it shows .... Loading "installonlyn" plugin Loading "rhnplugin" plugin This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments No Match for argument: zlib-devel Nothing to do – Ash Dec 18 '15 at 04:15
  • when i give yum -y install python-pip it says Loading "installonlyn" plugin Loading "rhnplugin" plugin This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments No Match for argument: python-pip Nothing to do what does it means ????? – Ash Dec 18 '15 at 04:33
  • That means you broke the yum, [try to recover yum](http://serverfault.com/questions/410075/reinstalling-python-on-centos-to-be-able-to-use-yum) – Ali Nikneshan Dec 18 '15 at 20:31
  • Thanks for the info bro... can you please tell me whats he possible reasons for " name error _cffi_backend name is not defined – Ash Dec 21 '15 at 09:49