码迷,mamicode.com
首页 > 编程语言 > 详细

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

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

标签:port   升级   require   which   problem   pre   ble   style   ror   

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错误问题解决

标签:port   升级   require   which   problem   pre   ble   style   ror   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!