Ubuntu系統下安裝python2.7

第一步:下載python2.7相關版本源碼(例如:Python-2.7.4.tgz)python

第二步:安裝linux

1) 解壓python2.7

$tar zxvf Python-2.7.4.tar.tgz命令行

2)進入文件夾:orm

$cd Python-2.7.4源碼

3)執行安裝步驟:it

    $ ./configureio

    $ makeform

$ 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.

相關文章
相關標籤/搜索