CentOS 6.5安裝IPython3.0

來源:互聯網
上載者:User

CentOS 6.5安裝IPython3.0

一、安裝Python2.7.8

由於Ipython僅支援Python2.7.8以上的版本,所以需先安裝Python2.7.8

到以下地址https://www.python.org/downloads/release/python-278/ 下載源碼包Python-2.7.8.tgz

1、 解壓:

[root@CentOS_1 ~]# tar xf Python-2.7.8

2、進入解壓後的檔案夾Python-2.7.8,編譯:

[root@centos_1 Python-2.7.8]# ./configure --prefix=/usr/local/python2.7

3、make安裝

[root@centos_1 Python-2.7.8]# make && make

二、安裝Ipython

1、下載Ipython

從URL:https://github.com/ipython/ipython/releases 下載Ipython的源碼包ipython-3.0.0.tar.gz,目前最新版本為3.0.

2、解壓安裝包

[root@centos_1 tmp]# tar zxvf ipython-3.0.0

3、安裝readline-devel包

在編譯安裝Ipython之前,確保已經安裝了readline-devel包,否則安裝完成後,IPython將無法正常輸入;

[root@centos_1 ~]# yum install readline-devel

3、使用Python2.7.8編譯安裝

[root@centos_1 ipython-3.0.0]# /usr/local/python2.7/bin/python setup.py build

[root@centos_1 ipython-3.0.0]# /usr/local/python2.7/bin/python setup.py install

4、安裝完成之後,會在Python2.7.8的bin目錄下面產生一個IPython的可執行檔,為了方便使用,將IPython串連到/usr/bin目錄下面

[root@centos_1 bin]# ln -sf ipython  /usr/bin/ipython

[root@centos_1 ~]# ipython 
WARNING: IPython History requires SQLite, your history will not be saved
Python 2.7.8 (default, Mar 24 2015, 19:00:34) 
Type "copyright", "credits" or "license" for more information.
IPython 3.0.0 -- An enhanced Interactive Python.
?        -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?  -> Details about 'object', use 'object??' for extra details.

CentOS 6.4 中IPython如何啟動Qt控制台和NoteBook? 

CentOS 5安裝IPython 

CentOS和RHEL安裝 IPython 0.11 

CentOS6.5安裝Python2.7.8以及安裝IPython 

IPython 的詳細介紹:請點這裡
IPython 的:請點這裡

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.