CentOS Install python2.7 and install Easy_install,pip,ipython

Source: Internet
Author: User
Tags readline

1. Install Python

Download python2.7.10

# wget Https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz

# TAR-ZXVF Python-2.7.10.tgz

# CD Python-2.7.10

#./configure--prefix=/usr/local/python

# Make && make install

Then test if Python is installed successfully

#/usr/local/python/bin/python2.7

Python 2.7.10 (Default, 26 2015, 22:48:01)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.

Establishing a soft connection

# MV/USR/BIN/PYTHON/USR/BIN/PYTHON26

# ln-s/usr/local/python/bin/python2.7/usr/bin/python

2. Installing Easy_install and Pip

Both Easy_install and Pip are used to download the relevant resource bundle for installing Python in a common repository pypi.

Install Easy_install First

# wget https://pypi.python.org/packages/source/e/ez_setup/ez_setup-0.9.tar.gz

# TAR-ZXVF Ez_setup-0.9.tar.gz

# CD ez_setup-0.9

# python ez_setup.py

# ln-s/usr/local/python/bin/easy_install/usr/bin/easy_install

Install PIP after installing Easy_install.

# wget https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz

# TAR-ZXVF Pip-7.1.2.tar.gz

# CD pip-7.1.2

# python setup.py Install

# ln-s/usr/local/python/bin/pip/usr/bin/pip

3. Installing Ipython

First, you have to install ReadLine

# pip Install ReadLine

Then install Ipython directly

# pip Install Ipython

With Pip and Easy_install, it's easy to install any module in the future.

CentOS Install python2.7 and install Easy_install,pip,ipython

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.