Ubuntu系统下安装python2.7

第一步:下载python2.7相关版本源码(例如:Python-2.7.4.tgz)

第二步:安装

1) 解压

$tar zxvf Python-2.7.4.tar.tgz

2)进入文件夹:

$cd Python-2.7.4

3)执行安装步骤:

    $ ./configure

    $ make

$ make install

4)检查是否安装成功

在命令行下输入python,出现以下显示结果即为成功。

Python 2.7.4 (default, May 5 2014, 16:39:10)

[GCC 4.6.3] on linux2

Type "help", "copyright", "credits" or "license" for more information.

posted @ 2014-10-17 09:47  Angel Lee  阅读(8168)  评论(0编辑  收藏  举报