Ubuntu16.04默认的Python是Python 2.7.12版本,现在一般都是使用3.x版本,切换默认的版本如下:
udo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
此时Python就会切换到:Python 3.5.2
Ubuntu16.04默认的Python是Python 2.7.12版本,现在一般都是使用3.x版本,切换默认的版本如下:
udo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
此时Python就会切换到:Python 3.5.2