python: resolve the error File "/ usr / bin / yum", line 30 except KeyboardInterrupt, e: Reason:

This is because the python yum using as a command interpreter, the original system comes with python interpreter to python2.7, then before I order to facilitate the python interpreter is set to the default python3.6, python3.6 lead by syntax parsing 2.7 error.

Solution:! First modify the behavior of / usr / bin / yum file # / usr / bin / python2.7 your system is not possible 2.7, the tab key completion python python command you can see which version you have, choose a lower version just fine. after modifying you can normally use the yum.

Guess you like

Origin www.cnblogs.com/lawgod/p/12098125.html