0
votes

I have accidentally removed python from the system (CentOS 7) and since then I am not able to use yum/pip/ and various other packages. Now I have installed python from source and still I am not able to use yum. I have tried replacing packages using rpm (this link) and I am getting following issue:

enter image description here

yum is still showing No module found yum. Some legacy python packages are missing and nothing seems to be working. Any idea on how these dependencies can be installed?

EDIT: I am getting following error: enter image description here

What I don't understand is why you are pulling python-devel from el7 where as all other python versions are from el5. Are you trying an upgrade ? - iamauser
No. I am trying to install dependencies required by yum. I have just followed the link in my question. - devil in the detail