1.安装依赖包
yum -y install zlib zlib-devel openssl openssl-devel bzip2 bzip2-devel
# cd Python-2.7.8
# ./configure --prefix=/usr/local/python --enable-shared
# make && make
# python -V
python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
# vim /etc/ld.so.conf
/usr/local/python/lib
# ldconfig -v
2. 安装setuptools
wget https://bootstrap.pypa.io/ez_setup.py -O - | python
3.安装pip
wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
python setup.py install
4.安装ipython
pip install ipython