美文网首页
Ubuntu Server 16.04 LTS安装Python2

Ubuntu Server 16.04 LTS安装Python2

作者: JeetChan | 来源:发表于2018-05-09 15:30 被阅读322次

  Ubuntu 16.04 默认安装Python3,需要手动安装Python2。首先确保已经安装gcc,make。然后就可以按以下步骤安装了:

  1. 下载Python2包,最新的版本为2.7.15
    wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz

  2. 解压缩
    tar -xvf Python-2.7.15.tgz

  3. 准备安装
    cd Python-2.7.15

  4. 安装

./configure
make
make install

参考

Installing the GNU C compiler and GNU C++ compiler

相关文章

网友评论

      本文标题:Ubuntu Server 16.04 LTS安装Python2

      本文链接:https://www.haomeiwen.com/subject/ragnrftx.html