码迷,mamicode.com
首页 > 编程语言 > 详细

Python的ipython的安装

时间:2015-10-07 12:03:21      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:


IPython是Python 的原生交互式 shell 的增强版,可以完成许多不同寻常的任务,比如帮助实现并行化计算;主要使用它提供的交互性帮助,比如代码着色、改进了的命令行回调、制表符完成、宏功能以及改进了的交互式帮助。

安装python
[root@localhost ~]# tar -xvf Python-2.7.10.tgz 
[root@localhost ~]# cd Python-2.7.10
[root@localhost Python-2.7.10]# ./configure --prefix=/usr/local/python27
[root@localhost Python-2.7.10]# make && make install

安装ipython
[root@localhost ~]#  cd ..
[root@localhost ~]# tar -xvf ipython-3.0.0.tar.gz 
[root@localhost ~]# cd ipython-3.0.0
[root@localhost ipython-3.0.0]# /usr/local/python27/bin/python2.7 setup.py build
[root@localhost ipython-3.0.0]# /usr/local/python27/bin/python2.7 setup.py install
......
changing mode of /usr/local/python27/bin/ipython2 to 755
changing mode of /usr/local/python27/bin/ipcluster2 to 755
changing mode of /usr/local/python27/bin/ipengine to 755
changing mode of /usr/local/python27/bin/iptest2 to 755
changing mode of /usr/local/python27/bin/iptest to 755
changing mode of /usr/local/python27/bin/ipython to 755
changing mode of /usr/local/python27/bin/ipcontroller to 755
changing mode of /usr/local/python27/bin/ipcontroller2 to 755
changing mode of /usr/local/python27/bin/ipengine2 to 755
changing mode of /usr/local/python27/bin/ipcluster to 755
running install_data
copying docs/man/ipython.1 -> /usr/local/python27/share/man/man1
copying docs/man/ipengine.1 -> /usr/local/python27/share/man/man1
copying docs/man/ipcontroller.1 -> /usr/local/python27/share/man/man1
copying docs/man/ipcluster.1 -> /usr/local/python27/share/man/man1
running install_egg_info
Writing /usr/local/python27/lib/python2.7/site-packages/ipython-3.0.0-py2.7.egg-info

配置
[root@localhost ipython-3.0.0]# ll /usr/local/python27/bin
total 6156
-rwxr-xr-x. 1 root root     110 Oct  7 09:48 2to3
-rwxr-xr-x. 1 root root     108 Oct  7 09:48 idle
-rwxr-xr-x. 1 root root     214 Oct  7 10:06 ipcluster
-rwxr-xr-x. 1 root root     214 Oct  7 10:06 ipcluster2
-rwxr-xr-x. 1 root root     217 Oct  7 10:06 ipcontroller
-rwxr-xr-x. 1 root root     217 Oct  7 10:06 ipcontroller2
-rwxr-xr-x. 1 root root     213 Oct  7 10:06 ipengine
-rwxr-xr-x. 1 root root     213 Oct  7 10:06 ipengine2
-rwxr-xr-x. 1 root root     182 Oct  7 10:06 iptest
-rwxr-xr-x. 1 root root     182 Oct  7 10:06 iptest2
-rwxr-xr-x. 1 root root     175 Oct  7 10:06 ipython
-rwxr-xr-x. 1 root root     175 Oct  7 10:06 ipython2
-rwxr-xr-x. 1 root root      93 Oct  7 09:48 pydoc
lrwxrwxrwx. 1 root root       7 Oct  7 09:50 python -> python2
lrwxrwxrwx. 1 root root       9 Oct  7 09:50 python2 -> python2.7
-rwxr-xr-x. 1 root root 6225046 Oct  7 09:48 python2.7
-rwxr-xr-x. 1 root root    1696 Oct  7 09:50 python2.7-config
lrwxrwxrwx. 1 root root      16 Oct  7 09:50 python2-config -> python2.7-config
lrwxrwxrwx. 1 root root      14 Oct  7 09:50 python-config -> python2-config
-rwxr-xr-x. 1 root root   18556 Oct  7 09:48 smtpd.py
[root@localhost ipython-3.0.0]# ln -sv /usr/local/python27/bin/python2.7 /usr/bin/python27
`/usr/bin/python27 -> `/usr/local/python27/bin/python2.7
[root@localhost ipython-3.0.0]# ln -sv /usr/local/python27/bin/ipython /usr/bin/
`/usr/bin/ipython -> `/usr/local/python27/bin/ipython

 

Python的ipython的安装

标签:

原文地址:http://www.cnblogs.com/abclife/p/4858418.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!