首先下载安装包,这个上网搜
Python-2.7.11.tar.xz
ipython-1.2.1.tar.gz
安装环境
yum install -y gcc gcc-c++ wget readline-devel xz make
xz -d Python-2.7.11.tar.xz
tar -xvf Python-2.7.11.tar
cd Python-2.7.11
./configure --prefix=/usr/local/python27
make && make install
ln -sv /usr/local/python27/bin/python2.7 /usr/bin/python27
cd ..
tar -xvf ipython-1.2.1.tar.gz
cd ipython-1.2.1
python27 setup.py build #没问题就安装吧,有问题再装其他模块,这里我没遇到,继续安装吧。
python27 setup.py install
ln -sv /usr/local/python27/bin/ipython /usr/bin/