博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
解决yum升级的问题“There was a problem importing one of the Python modules”
阅读量:7143 次
发布时间:2019-06-29

本文共 492 字,大约阅读时间需要 1 分钟。

        yum命令升级的时候,报出这个错误。

There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was:   No module named yumPlease install a package which provides this module, orverify that the module is installed correctly.It's possible that the above module doesn't match thecurrent 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

转载地址:http://kmgrl.baihongyu.com/

你可能感兴趣的文章
使用Newtonsoft将DataTable转Json
查看>>
HDU1598:find the most comfortable road(并查集 + 枚举)
查看>>
《面向模式的软件体系结构2-用于并发和网络化对象模式》读书笔记(3)--- 服务访问和配置模式...
查看>>
我现在有个表,里面有100个不同的单词,每个单词对应有大概20个词组,我想通过sql,每个单词随机获取对应的3个词组,请问怎么写可以实现?...
查看>>
第十六讲-对抗样本与对抗训练3
查看>>
Objective-C语法汇总
查看>>
BFS --- 模板题
查看>>
React入门
查看>>
IOS给任意UIView截屏
查看>>
codeforces 765 F Souvenirs 线段树+set
查看>>
redhat9 linux 网卡无法激活排障
查看>>
数据库将某个字段由可为空改为非空
查看>>
POJ-2431 优先队列
查看>>
Python框架Django的入门
查看>>
Codeforces 632E Thief in a Shop
查看>>
汇编语言描述
查看>>
移动开发学习记录
查看>>
Source Insight 使用
查看>>
【转】Oracle Freelist和HWM原理及性能优化
查看>>
数据结构——树状数组
查看>>