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 的下载地址:请点这里

本文永久更新链接地址:

我想一个人旅行,可以不带相机,也不要带上手机,

CentOS 6.5安装IPython3.0

相关文章:

你感兴趣的文章:

标签云: