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:
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?


python-develfromel7where as all other python versions are fromel5. Are you trying an upgrade ? - iamauser