本文介绍了没有模块名为转 - 当我在外壳致电百胜的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我安装在CentOS机器Linux操作系统蟒蛇2.7.5和mod_wsgi的。而发生这种情况:
I installed python 2.7.5 and mod_wsgi on centos machine linux os. And this happened:
# yum
Error processing line 1 of /usr/local/lib/python2.7/site-packages/abrt.pth:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
ImportError: No module named abrt_exception_handler
Remainder of file ignored
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in <module>
import yummain
File "/usr/share/yum/yummain.py", line 22, in <module>
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in <module>
import rpm
ImportError: No module named rpm
百胜模块不因为犯规存在转模块的运行。
我不知道我怎么能安装python-rpm的模块,将它的工作,如果我安装?
yum module doesn't run because of rpm module doesnt exist.I don't know how can I install the python-rpm module and will it work if I install it?
感谢。
推荐答案
我有类似的问题,我所做的是手动下载旧版本Python和使用rpm重新安装:
I had similar problem, what I did is to manually download the old version python and reinstall it with rpm:
$ rpm -qa | grep python- | grep 2.6
$ sudo rpm -ivh --force ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.5/x86_64/updates/fastbugs/python-2.6.6-52.el6.x86_64.rpm
蟒重新安装后,我的百胜正常工作。
After the reinstallation of python, my yum works correctly.
这篇关于没有模块名为转 - 当我在外壳致电百胜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!