Yum错误的问题 No module named yum
在给国内一个客户安装DirectAdmin的时候发现的
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.3.4 (#1, Nov 4 2004, 14:06:56)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)]
If you cannot solve this problem yourself, please go to
the yum faq at:
查看了一下 是python兼容性问题
下载了新的python 编译 安装
还是错误
想想是不是调用系统默认的
find 一下 有个/usr/bin/python2.4
修改了一下 vi /usr/sbin/yum
把#/usr/sbin/python 改为#/usr/sbin/python2.4
结果就OK了
害我浪费时间又是重新安装yum 又是重新编译python2.7 。。。
真晕…………