在终端输入下面语句
如果是将Python2设置为默认的Python,语句如下:
echo alias python=python2 >> ~/.bashrc
source ~/.bashrc
同理,如果是将Python3设置为默认的Python,语句如下:
echo alias python=python3 >> ~/.bashrc
source ~/.bashrc
在终端输入下面语句
如果是将Python2设置为默认的Python,语句如下:
echo alias python=python2 >> ~/.bashrc
source ~/.bashrc
同理,如果是将Python3设置为默认的Python,语句如下:
echo alias python=python3 >> ~/.bashrc
source ~/.bashrc