CentOS Source code installation Ipython2.7,setuptools, Pip and solve the problem Ipython cannot use the arrow keys

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.