[root@localhost pdserving]# yum install -y tree
File "/usr/bin/yum", line 30
except KeyboardInterrupt, e:
^
原因。python 重新安装过了。
# 将 第一行的路径改正确就可以了。
[root@localhost pdserving]# vi /usr/bin/yum
#!/usr/bin/python2.7
import sys
try:
import yum
except ImportError:
print >> sys.stderr, """\
- KeyboardInterrupt quot except File linekeyboardinterrupt quot except file quot exception rabbitmq reason outofmemoryerror quot exception thread bindingexception quot exception statement messagingexception quot exception connect version unsupportedclassversionerror quot exception illegalcharactererror quot content-box exceptions 思路golang file line function三个file line noclassdeffounderror quot serverfactory exception