链接:https://www.jianshu.com/p/743967c7ab1b
来源:简书
Ubuntu 16.04 默认安装Python3,需要手动安装Python2。首先确保已经安装gcc,make。然后就可以按以下步骤安装了:
下载Python2包,最新的版本为2.7.15
wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz解压缩
tar -xvf Python-2.7.15.tgz准备安装
cd Python-2.7.15安装
./configure
make
make install
参考
Installing the GNU C compiler and GNU C++ compiler
最后
以上就是简单大山最近收集整理的关于Ubuntu Server 16.04 LTS安装Python2的全部内容,更多相关Ubuntu内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复