我是靠谱客的博主 真实乌龟,这篇文章主要介绍解决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)]

     解决方法:

sudo vim /usr/bin/yum
#修个python所在的路径。比如
#/usr/local/bin/python2.6





本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/5166582.html,如需转载请自行联系原作者

最后

以上就是真实乌龟最近收集整理的关于解决yum升级的问题“There was a problem importing one of the Python modules”的全部内容,更多相关解决yum升级的问题“There内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(108)

评论列表共有 0 条评论

立即
投稿
返回
顶部