程序笔记   发布时间:2022-05-30  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了[yum安装] ImportError: No module named sqlitecachec大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

先安装一下三个模块:

  • python-pycurl
    ::(此为python模块,如果你是python开发者,可通过pip pycurl安装,否则,rpm或者源码安装)

  • python-urlgrabber
    ::(此为python模块,如果你是python开发者,可通过pip urlgrabber安装,否则,rpm或者源码安装)

  • yum-metadata-parser
    ::(下载地址:,解压,进入解压后的目录,执行python setup.py install,然后再次执行:[sudo] ./yummain.py install yum)

如果安装成功之后,执行yum,报一下错误:

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.12 (default,Nov 1 2016,15:50:51)
[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

解决:

 vim /usr/bin/yum; 
 然后将#!/usr/bin/python中的python解释器修改为低版本。

大佬总结

以上是大佬教程为你收集整理的[yum安装] ImportError: No module named sqlitecachec全部内容,希望文章能够帮你解决[yum安装] ImportError: No module named sqlitecachec所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。