在Ubuntu 16.04中安装Python 2.7.6

时间:2018-06-27 11:46:20

标签: python python-3.x python-2.7 ubuntu ubuntu-16.04

嗨,我正在尝试在我的16.04云映像上安装python2.7.6。其提供以下信息-apt install python=2.7.6

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python

1 个答案:

答案 0 :(得分:1)

  
    

安装Python 2.7.6:

  
$ wget  https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz  
$ tar xvfz Python-2.7.6.tgz
$ cd Python-2.7.6/
$ ./configure
$ make
$ make install

信息来源:SOURCE