此处环境为Ubuntu18.04
在当前用户的home路径下终端输入:
echo alias python=python3 >> ~/.bashrc
如果是python3.7和python3.8共存,但是想默认是3.8,需要执行
echo alias python3=python3.8 >> ~/.bashrc
然后source一下:
source ~/.bashrc
在当前用户的home路径下终端输入:
echo alias python=python3 >> ~/.bashrc
如果是python3.7和python3.8共存,但是想默认是3.8,需要执行
echo alias python3=python3.8 >> ~/.bashrc
然后source一下:
source ~/.bashrc