”No module named yum”重新安装yum/python

问题描述

[root@develop local]# yum -y install prce
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.6.6 (r261:67515, Aug 7 2010, 11:36:17)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq

如上所述,这个问题花费了笔者好长时间,好在终于查找资料给解决了(虽然说解决方法简单粗暴)。大量参考了各位网友的解答,就不重新写了,这里贴出几篇基本上可以解决绝大多数问题的文章,供大家参考使用,省的在花时间去查阅海量资料,同时也期待大家有好的方法可以共享。
”No module named yum”重新安装yum/python_第1张图片
先阅读文章1,对所出问题有个总体了解,之后再通过文章2去解决。估计会有一小部分会与自己的环境有所出入,注意阅读,思考都是可以解决的。
文章1
文章2

你可能感兴趣的:(linux,程序人生,伐木累)