centos下装完python2.7无法使用yum的解决办法 vim /usr/bin/yum #!/usr/bin/python2.4 (指定使用2.4的版本,如果没有,从别的机器copy一份) Protoss a good race, do not change it.