我是Ubuntu上的Yocto项目的新手。它要求使用python版本2.7,而不是3.X。我需要将Python的默认版本设置为2.7。我该怎么做呢?
发布于 2018-05-05 01:17:02
在你的终端上写
cd /usr/src然后从python.org安装Python
sudo wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz然后通过以下命令解压tgz文件
sudo tar xzf Python-2.7.14.tgz然后转到目录Python-2.7.14
cd Python-2.7.14然后配置语言
sudo ./configure --enable-optimizations然后将Python添加到路径中
sudo make altinstall完成Python 2.7.14(真实版本和原始版本)的安装
https://stackoverflow.com/questions/50179078
复制相似问题