Ubuntu is set as the default version python3

Both commands can be executed directly:
the sudo-Update Alternatives --install / usr / bin / Python Python / usr / bin / 100 python2
the sudo-Update Alternatives --install / usr / bin / Python Python / usr / bin / to python3 150
to switch to Python2, perform:
the sudo Update-Python Alternatives --config
prompted to select a digital input enter.

Guess you like

Origin www.cnblogs.com/xin-qing3/p/11028494.html