yum---没有名为 yum 的模块 [英] yum---no module named yum
问题描述
当我在 shell 中使用 yum 时,错误信息是没有名为 yum 的模块,所以我编辑/usr/bin/yum 将第一行更改为另一个版本的 python,但没有任何变化,当我使用不同的 python 时导入yum,会出现不同的错误
when I use yum in the shell,the error message is no module named yum, so I edit the /usr/bin/yum change the first line to another version of python, but nothing changes,and when I user different python to import yum, it brings out different error
当我使用 yum 时,消息是这样的:在我使用rpm -e --nodeps pycurl"删除 pycurl 之前,yum 没问题……我需要一些帮助:(
and when i use yum ,the message is like this: the yum is ok before i use "rpm -e --nodeps pycurl" to remove pycurl...i need some help:(
推荐答案
将 /usr/bin/yum
的第一行更改为 python 的默认版本可能会有所帮助.
Changing the first line of /usr/bin/yum
to the default version of python may help.
例如将 #!/usr/bin/python
改为 #!/usr/bin/python2.4
这篇关于yum---没有名为 yum 的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!