CentOS 7安装Python到3.5和Python2共存后,需要在/usr/bin/python创建了一个指向Python 3的软连接,
然后将/usr/bin/yum的顶部的:
!/usr/bin/python
改成了
!/usr/bin/python2.7
后,运行yum,还是出现了以下错误:
[root@master ~]# yum -y groupinstall “X Window System”
File "/usr/libexec/urlgrabber-ext-down", line 28
except OSError, e:
^
SyntaxError: invalid syntax