解决Centos5上升级Python后yum不能用的问题


把Centos5上的Python升级到2.6后,用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.6.5 (r265:79063, Jul  2 2010, 16:30:56)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
&nbsp[......]

继续阅读