最近开始学使用Python管理Linux系统,于是下载了Ipython的tarball(0.11)安装,结果提示python版本低:是2.4,需要2.6及以上的版本才行,于是请教了大虾:覆盖安装呗。
下面就跟大家分享一下,我折腾的过程,O(∩_∩)O~
先解压喽:tar jxvf Python-2.7.2.tar.bz2
# ./configure --prefix=/usr/local/Python
# make
# make install
#ln -s /usr/local/Python/bin/python /usr/sbin/python
输入python看一下版本吧
[root@localhost Python-2.7.2]# python
Python 2.7.2 (default, Sep 6 2011, 20:35:35)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
是不是已经升级到2.7.2了哈
接下来安装Ipython 0.11
解压:# tar zxvf ipython-0.11.tar.gz
Ipython 提供了一个脚本用于安装,so直接执行脚本呗
# python setup.py install
# ln -s /usr/local/Python/bin/ipython /usr/sbin/ipython
[root@localhost ipython-0.11]# ipython
Python 2.7.2 (default, Sep 6 2011, 20:35:35)
Type "copyright", "credits" or "license" for more information.
IPython 0.11 -- 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.
In [1]:
是不是安装成功哈,迫不及待地试一下哈