微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

[yum安装] ImportError: No module named sqlitecachec

linux环境下,遇见此错误,说明你已经下载了,并处于yum安装文件夹中,正在执行:[sudo] ./yummain.py install yum

先安装一下三个模块:

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

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解释器修改为低版本。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐