Installing Python version 2.7
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
Tar zxvf python-2.7.8.tgz
CD Python-2.7.8
./configure--prefix=/usr/local/python2.7--with-readlinemake (resolve arrow key issues)--with-openssl
--with-openssl-devel (install pip required)--with zlib (install setuptools) required
Make
Make install
Mv/usr/bin/python/usr/bin/old_python
Ln-s/usr/local/python2.7/bin/python2.7/usr/bin/python
Yum is made in Python, so
After doing so, Yum will not be normal and needs to modify the Yum file
Vim/usr/bin/yum
The first line changes the #!/usr/bin/python to #!/usr/bin/old_python
Continue installing Ipython below
Wget ' https://pypi.python.org/packages/source/i/ipython/ipython-3.1.0.tar.gz#md5= a749d90c16068687b0ec45a27e72ef8f '--no-check-certificate
Tar zxvf ipython-3.1.0.tar.gz
CD ipython-3.1.0
Python setup.py Install
Ipthon Installation Complete
Installing Setuptools
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-18.2.tar.gz#md5= 52b4e48939ef311d7204f8fe940764f4--no-check-certificate
CD setuptools-18.2
Python setup.py Install
Install PIP
wget http://pypi.python.org/packages/source/p/pip/pip-1.0.tar.gz
Python setup.py Build
Python setup.py Install
Ln-s/usr/local/python2.7/bin/pip/usr/bin/pip
PIP Installation Complete
Install Test with PIP: Pip install Flake8
Get!
This article is from the "stuffy Injury" blog, please be sure to keep this source http://echoliuye.blog.51cto.com/10053145/1688124
CentOS Source code installation Ipython2.7,setuptools, Pip and solve the problem Ipython cannot use the arrow keys