After the installation of python2.7.11 after a few days is good, but today with Yum found the problem
[email protected] yum.repos.d]# Yum list
There was a problem importing one of the Python modules
Required to run Yum. The error leading to this problem was:
No module named Yum
Install a package which provides this module, or
Verify the module is installed correctly.
It ' s possible that the above module doesn ' t match the
Current version of Python, which is:
2.7.11 (default, APR 7 2016, 21:10:55)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)]
If You cannot solve this problem yourself and go to
The Yum FAQ at:
Http://yum.baseurl.org/wiki/Faq
Check on the Internet to know that the original Yum needs Python environment, python2.7.11 is too new, need to change back to the old version
which Yum
Whereis python
Vim/usr/bin/yum
Change #!/usr/bin/python to #!/usr/bin/python2.6
Issues after upgrading python2.7.11