Ubuntu18.04版本的Python运行环境是默认2.x版本,运行项目设置是颇为不便,需求:修改为3.x版本! 解决方法: 修改默认配置为3.x版本: sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150 切换回2.x版本: sudo update-alternatives --config python