Yum 似乎坏了,下面是错误。
'import site' failed; use -v for traceback
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.2 (r262:71600, May 12 2009, 15:34:31)
[GCC 4.1.1]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
python -V 给出以下输出
Python 2.6.2
我只安装了 python 2.6.6,我不知道为什么它显示为 2.6.2
rpm -qa |grep python
仅列出 python 2.6.6,但仍然“python -V”表示版本为 2.6.2
我什至删除了 /usr/bin/python 文件并重新安装了 python-2.6.6、python-libs-2.6.6 和 python-devel-2.6.6,它重新创建了 /usr/bin/python,但仍然
/usr/bin/python -V
给出 Python 2.6.2 的输出
正因为如此,yum 被打破了