千万不要将centos中python 默认2.7的编译器改为3.x的,在使用yum时,会报各种错,
1、File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:
原因是yum按python3.6解析2.7的语法出错了
修改/usr/bin/yum文件中的第一行为#!/usr/bin/python2.7
2、 File "/usr/libexec/urlgrabber-ext-down", line 28 except OSError, e:
修改vi /usr/libexec/urlgrabber-ext-down文件中的第一行为#!/usr/bin/python2.7
标签:bin,centos,except,编译器,yum,usr,line,2.7 From: https://www.cnblogs.com/bigleft/p/18128808