首页 > 编程语言 > 详细

python升级造成yum错误问题解决

时间:2017-03-01 14:19:24      阅读:177      评论:0      收藏:0      [点我收藏+]

1.错误提示

 1 [root@ct]# yum install redis 
 2 There was a problem importing one of the Python modules  
 3 required to run yum. The error leading to this problem was:  
 4   
 5   
 6    No module named yum  
 7   
 8   
 9 Please install a package which provides this module, or  
10 verify that the module is installed correctly.  

2.解决方法

 1 vi /usr/bin/yum
 2 
 3 #!/usr/bin/python
 4 #修改
 5 #!/usr/bin/python2.6
 6 
 7 
 8 vi /usr/bin/yum-updatest
 9 
10 #!/usr/bin/python
11 #修改为
12 #!/usr/bin/python2.6

 

python升级造成yum错误问题解决

原文:http://www.cnblogs.com/coder-ct/p/6483641.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!