yum 出现错误ImportError: No module named urlgrabber.grabber

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum 出现错误ImportError: No module named urlgrabber.grabber相关的知识,希望对你有一定的参考价值。

yum 出现错误:

[email protected] ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyuncs.com
 * epel: mirrors.aliyuncs.com
 * extras: mirrors.aliyuncs.com
 * updates: mirrors.aliyuncs.com
Traceback (most recent call last):
  File "/usr/libexec/urlgrabber-ext-down", line 22, in <module>
    from urlgrabber.grabber import ImportError: No module named urlgrabber.grabber
Traceback (most recent call last):
  File "/usr/libexec/urlgrabber-ext-down", line 22, in <module>
    from urlgrabber.grabber import ImportError: No module named urlgrabber.grabber

 

vi /usr/libexec/urlgrabber-ext-down

 

把头部的python改成和/usr/bin/yum中一样的

以上是关于yum 出现错误ImportError: No module named urlgrabber.grabber的主要内容,如果未能解决你的问题,请参考以下文章

Python 使用中出现错误:ImportError: No module named _sqlite3

import yum ImportError: No module named yum

Scrapy运行ImportError: No module named win32api错误

python2.7安装完后,执行python时,出现import readline ImportError: No module named readline 以及tab补全

pip安装使用出现ImportError: No module named setuptools

ImportError: No module named pysqlite2 --安装pysqlite