Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE、CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。
yum命令升级的时候,报出这个错误。
There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: No module named yumPlease install a package which provides this module, orverify that the module is installed correctly.It's possible that the above module doesn't match thecurrent version of Python, which is:2.7.5 (default, Sep3 2013, 23:16:48) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)]
解决方法:
<pan style="font-size:18px;">udo vim /usr/bin/yum#修个python所在的路径,例如#/usr/local/bin/python2.6