ubuntu 16.04默认使用的是python2, 然而有些情况下可能需要用到python
切换默认python可以使用如下命令(terminal中执行):
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
切换回python2
sudo update-alternatives --config python
ref:
https://blog.csdn.net/liulangdeshusheng/article/details/52400088