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

版权声明:转载请注明出处 https://blog.csdn.net/ZT7524/article/details/86442028

问题描述

[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

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

猜你喜欢

转载自blog.csdn.net/ZT7524/article/details/86442028
今日推荐