从品牌网站建设到网络营销策划,从策略到执行的一站式服务
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
创新互联于2013年创立,先为西丰等服务建站,西丰等地企业,进行企业商务咨询服务。为西丰企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。No module named yum
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:
If you cannot solve this problem yourself, please go to the yum faq at:
http://wiki.linux.duke.edu/YumFaq
我开始还以为是yum没安装,于是:
#rpm -qa|grep yum
yum-updatesd-0.9-2.el5
yum-metadata-parser-1.1.2-4.el5
yum-utils-1.1.16-21.el5
yum-rhn-plugin-0.5.4-26.el5
yum-security-1.1.16-21.el5
yum-3.2.22-40.el5
# rpm -ivh yum-3.2.22-40.el5
error: open of yum-3.2.22-40.el5 failed: No such file or directory
安装不了,于是网上搜有了一下发现是python依赖错误。修改如下:
#whereis python
python: /usr/bin/python /usr/bin/python2.4 /usr/bin/python.bak /usr/lib/python2.4 /usr/local/bin/python /usr/local/bin/python2.7-config /usr/local/bin/python2.7 /usr/local/lib/python2.7 /usr/include/python2.4 /usr/share/man/man1/python.1.gz
修改文件: vim /usr/bin/yum
修改头#!/usr/bin/python => #!/usr/bin/python2.4
Ok,问题搞定
成都网站建设公司地址:成都市青羊区太升南路288号锦天国际A座10层 建设咨询028-86922220
成都快上网科技有限公司-四川网站建设设计公司 | 蜀ICP备19037934号 Copyright 2020,ALL Rights Reserved cdkjz.cn | 成都网站建设 | © Copyright 2020版权所有.
专家团队为您提供成都网站建设,成都网站设计,成都品牌网站设计,成都营销型网站制作等服务,成都建网站就找快上网! | 成都网站建设哪家好? | 网站建设地图