I'm running Centos 5.11 and I installed python 2.7 (replacing 2.4) I soon found out that yum won't work with 2.7, as expected if I put python -V it shows Python 2.7.My classmate did a snapshot of the Virtual machine where CentOS is running before I installed 2.7. He restored the snapshot, now when I type python -V it shows 2.4 but yum still does not work showing:It's possible that the above module doesn't match the  current version of Python, which is:  2.7.9 (default, Feb 23 2016, 18:55:48)So even though python -V shows 2.4 yum still shows 2.7. How can I fix this?
Centos 5.11 No module named yum
centos;yum;python