您的位置:首页 > 编程语言 > Python开发

python的卸载方式和运行yum报错:No module named yum

2017-11-26 17:06 627 查看

公司测试机环境不知道给我卸了什么包,导致yum运行报错状况:

系统版本:Red Hat Enterprise Linux Server release 6.2 (Santiago)

内核版本:2.6.32-220.el6.x86_64

 

报错情况:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

  No module named sqlite

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:

 

一、升级或卸载Python导致:

 

二、完全重装python和yum

 

三、运行python进行测试

                     来源:http://blog.51cto.com/smilepad/1333478
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐