Today I messed up the versions of Python on my CentOS machine. Even yum cannot work properly. I made the mistake that I removed the default /usr/bin/python which led to this situation. How could I get back a clear Python environment? I thought remove them totally and reinstall Python may work, but do not know how to do it. Wish somebody could help!
To install Python on CentOS: sudo yum install python2/3 (select the version as per requirement)
To uninstall Python on CentOS: sudo yum remove python2/3 (select the version as per your requirement)
To check version for python3(which you installed): python3 --version
To check version for python2 (which you installed): python2 --version
Remove clearly and reinstall python on CentOS