升级python2.7之后,yum 无法运行:

[root@205609 ~]# yum
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

Please install a package which provides this module, or  
verify that the module is installed correctly.

It's possible that the above module doesn't match the  
current version of Python, which is:  
2.7.10 (default, Dec 30 2015, 03:58:44)  
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)]

If you cannot solve this problem yourself, please go to  
the yum faq at:

找来找去,原来是python版本的问题,升级了python,默认用了新的python版本,yum还是旧的,所以就有这个问题,那么就修改yum的python到原来的版本vim /usr/bin/yum第一行到旧的python位置就ok了。