Note: I used CentOS6.8 to minimize the installation for this operation.
In order for ipython to save historical records, sqlite-devel needs to be installed
yum -y install gcc wget xz unzip zlib-devel openssl openssl-devel sqlite-devel
wget 
https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz
xz -d Python-2.7.12.tar.xz     
tar xf Python-2.7.12.tar     
cd Python-2.7.12./configure --prefix=/usr/local/python     
make     
make install
mv /usr/bin/python /usr/bin/python2.6.6     
ln -sv /usr/local/python/bin/python2.7/usr/bin/python
#! /usr/bin/python
To:
#! /usr/bin/python2.6.6
At this point python2.7.12 installation is complete
Next install ipython
ipython installation
wget 
https://github.com/ipython/ipython/archive/master.zip
unzip master.zip     
cd ipython-master     
python setup.py build     
python setup.py install
ln -sv /usr/local/python/bin/ipython2 /usr/bin/ipython
wget 
https://pypi.python.org/packages/9f/7c/0a33c528164f1b7ff8cf0684cf88c2e733c8ae0119ceca4a3955c7fc059d/setuptools-23.1.0.tar.gz
     
tar xf setuptools-23.1.0.tar.gz     
cd setuptools-23.1.0     
python setup.py install     
wget 
https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz
     
tar xf pip-8.1.2.tar.gz     
cd pip-8.1.2     
python setup.py install
Create symbolic link
ln -sv /usr/local/python/bin/pip2.7/usr/bin/pip
Then execute ipython to see what module is missing and go directly
pip install module_name     
pip install traitlets     
pip install pygments     
pip install pexpect     
pip install backports.shutil_get_terminal_size     
pip install pathlib2     
pip install pickleshare     
pip install prompt_toolkit     
pip install simplegeneric
Well, the ipython environment is set up.
Recommended Posts