我安装了 libxml2-2.9.0 和 libxslt-1.1.27 然后 yum 被破坏了我运行的任何 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.4.3 (#1, Jan 21 2009, 01:11:33)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
然后我认为python版本太旧了,安装python 2.7.3并从头开始安装,经过一些错误的试验,它变得越来越糟,现在当我运行'python -V'时,我得到了'Python 2.7.3'版本,当我运行“/usr/bin/python -V”时,它返回“python-2.4.3-24.el5”,无论我做什么,yum 仍然被该消息破坏。我怎样才能让百胜回来?我的操作系统是:linux 2.6.18-164.11.1.el5 x86_64 GNU/Linux