Ubuntu 下面的切换 python 版本操作

archermind@archermind:~$ sudo update-alternatives --config python
[sudo] password for archermind: 
There are 2 choices for the alternative python (providing /usr/bin/python).

  Selection    Path                Priority   Status
------------------------------------------------------------
  0            /usr/bin/python3.5   2         auto mode
  1            /usr/bin/python2.7   1         manual mode
* 2            /usr/bin/python3.5   2         manual mode

Press  to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/python2.7 to provide /usr/bin/python (python) in manual mode

 

你可能感兴趣的:(python)