Eimnem 2016-11-22 08:05 采纳率: 100%
浏览 5021
已采纳

关于linux下yum不能使用,和Python版本有关!就是解决不了!

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.10 (default, Nov 21 2016, 18:47:42)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq

自己在百度上找了很久,都是说是Python的问题,因为不久前安装lnmp一键安装失败,也不知道什么原因,yum失效!卸载yum相关的rpm包重新安装,也重新安装了在百度上的几个Python的相关rpm包。改过/usr/bin/yum里的#/usr/bin/python的版本,也不管用。
求帮助!
  • 写回答

1条回答 默认 最新

  • oyljerry 2016-11-22 08:10
    关注

    看上去是你系统环境缺省的python中的yum模块找不到了。自己下载一个python的yum包安装试试

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题