Skip to main content

One post tagged with "python3"

View All Tags

yum error with SyntaxError: invalid syntax

· One min read

yum error message:

[root@31f24739f206 /]# yum File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: ^ SyntaxError: invalid syntax

  • change default python from python3 to python2
alternatives --install /usr/bin/python python /usr/bin/python2 0