首页 > 代码库 > 解决yum升级的问题“There was a problem importing one of the Python modules”
解决yum升级的问题“There was a problem importing one of the Python modules”
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.7.5 (default, Sep 3 2013, 23:16:48) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)]
解决方法:
<span style="font-size:18px;"> sudo vim /usr/bin/yum #修个python所在的路径,例如 #/usr/local/bin/python2.6</span>
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。