python升級導致yum命令無法使用的解決辦法 解決辦法 將 !/usr/bin/python 改為: !/usr/bin/python(另一個版本python) ...
python升級導致yum命令無法使用的解決辦法
[root@develop bin]# yum
[root@develop local]# yum -y install prce
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.1 (r261:67515, Aug 7 2010, 11:36:17)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
解決辦法
vi /usr/bin/yum
將
!/usr/bin/python
改為: