【linux系统下载_学习_教程_编程_软件】提供全系列Linux发行版下载学习-Linux部落
当前位置: 主页 > Linux系统教程 > 系统管理 >

解决升级python导致yum命令无法使用的问题

时间:2018-01-03 14:56来源:网络整理 作者:linux 点击:
------分隔线----------------------------

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

改为:

!/usr/bin/python(另一个版本python)


本文地址:http://www.linuxzone.net/sysadmin/601.html
------分隔线----------------------------
相关文章
栏目列表