解决yum升级的问题“There was a problem importing one of the Python modules”
2016-01-28 15:52
811 查看
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
相关文章推荐
- Python 高级特性 : 生成器
- 【python】'''用法
- 用python实现算法之——插入排序
- python 打印类的属性、方法
- Black Hat python-1.x
- Python Panda - 学习笔记
- 条形码识别(2)——获取条形码条空(bar&space)宽度
- python 2.6 pip install mysql-python 报错
- python 多继承详解
- python字符串连接方法
- Python实现向solrclould提交pdf文件
- 详解Python网络爬虫功能的基本写法
- python学习笔记二
- python字符串连接效率比较(使用+连接)
- python数字图像处理(18):高级形态学处理
- python实现的遗传算法实例(一)
- Python调用模块发送邮件(粗糙版)
- leetcode之Coin Change
- Python3实现Web网页图片下载
- python学习之--ubuntu下 如何安装第三方库的简要方法