【Centos】【Python3】yum install 报错
运行yum install 安装时报错
File "/usr/libexec/urlgrabber-ext-down", line 28 except OSError, e:
SyntaxError: invalid syntax
经过网上查找原因,找到解决方案是:
1.
vim /usr/libexec/urlgrabber-ext-down
将/usr/bin/python改为/usr/bin/python2.7。
2.
vim /usr/bin/yum-config-manager
#!/usr/bin/python换成 #!/usr/bin/python2.7
PS. 这边我是修改 vim /usr/bin/yum