jar_1647 2016-04-27 08:23 采纳率: 0%
浏览 2017

使用YUM安装软件提示报错在网上搜寻很多帖子均未能解决问题

[root@iZ94y7aaiclZ tar]# whereis python
python: /usr/bin/python2.6 /usr/bin/python /usr/lib/python2.6 /usr/lib64/python2.6 /usr/local/bin/python2.7-config /usr/local/bin/python /usr/local/bin/python2.7 /usr/local/lib/python2.7 /usr/include/python2.6 /usr/share/man/man1/python.1.gz
[root@iZ94y7aaiclZ tar]# 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.3 (default, Apr 27 2016, 14:59:31)

[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

使用YUM安装软件提示报错, 在网上搜寻很多帖子均未能解决问题.

有说是python的版本问题(比如同时安装了两个版本, 导致版本不匹配), 也找了资料进行配置, 但是还是不行.

yum我也重新装了一次, 但是还是无法解决问题.

求给位大虾帮忙解决问题, 感激不尽.

  • 写回答

2条回答

  • lambda-fk 2016-05-09 10:19
    关注

    There was a problem importing one of the Python modules
    required to run yum

    你是不是安装过python
    如果是得话那是因为python被覆盖的原因

    评论

报告相同问题?

悬赏问题

  • ¥15 ROS Turtlebot3 多机协同自主探索环境时遇到的多机任务分配问题,explore节点
  • ¥15 Matlab怎么求解含参的二重积分?
  • ¥15 苹果手机突然连不上wifi了?
  • ¥15 cgictest.cgi文件无法访问
  • ¥20 删除和修改功能无法调用
  • ¥15 kafka topic 所有分副本数修改
  • ¥15 小程序中fit格式等运动数据文件怎样实现可视化?(包含心率信息))
  • ¥15 如何利用mmdetection3d中的get_flops.py文件计算fcos3d方法的flops?
  • ¥40 串口调试助手打开串口后,keil5的代码就停止了
  • ¥15 电脑最近经常蓝屏,求大家看看哪的问题