sudo vim ~/.bashrc 加入以下内容: alias python='/usr/bin/python3.8' # python3.8为自己想要的默认版本 输入如下命令使修改生效 source ~/.bashrc