?
Yum(全稱為 Yellow dog Updater, Modified)是一個在Fedora和RedHat以及SUSE、CentOS中的Shell前端軟件包管理器。基於RPM包管理,能夠從指定的服務器自動下載RPM包并且安裝,可以自動處理依賴性關系,并且一次安裝所有依賴的軟件包,無須繁瑣地一次次下載、安裝將linux中python2.4升級到2.7,把/usr/bin/python指向了新安裝的python2.7的可執行文件
在輸入#yum時以下錯誤:python2.7中沒有yum這個模塊
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
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:
2.7.3 (default, May 7 2013, 14:52:20)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
解決辦法見:
http://apipi.blog.163.com/blog/static/42266381201312251724160/
改了腳本中的python環境,將yum執行的python環境指向了python2.4
再次執行yum就恢復正常了