没有名为rpm的模块

时间:2015-03-08 12:26:19

标签: python linux centos

我是centos的新手我试图在centos中升级python版本,现在yum被打破了。如果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 rpm
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.6.6 (r266:84292, Mar  8 2015, 07:21:16)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)]
If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq**

我已运行此命令rpm -q rpm-python,然后显示rpm-python-4.8.0-38.el6_6.x86_64

0 个答案:

没有答案