一、准备工作
首先下载以下两个包,上网搜去吧
Python-2.7.12.tar.xz
ipython-1.2.1.tar.gz
二、安装需要用到的包
yum -y install readline-devel lrzsz gcc gcc-c++ xz make
三、开始安装python
mkdir -p /ken
cd /ken
rz这两个包到服务器上
Python-2.7.12.tar.xz
ipython-1.2.1.tar.gz
tar xf Python-2.7.12.tar.xz
tar zxvf ipython-1.2.1.tar.gz
cd /ken/Python-2.7.12
./configure --prefix=/usr/local/python2712
make && make install
ln -sv /usr/local/python2712/bin/python /usr/bin/python2712
cd /ken/ipython-1.2.1
python2712 setup.py build
python2712 setup.py install
ln -sv /usr/local/python2712/bin/ipython /usr/bin/ipython
完成
全局界面输入ipython进入