Centos 6.5 python 2.6.6 upgrade to 2.7.3 and install the Easy_install and PIP tool process

Source: Internet
Author: User

First, instructions for use:


Some reasons need to upgrade the CentOS 6.5 system to the Python 2.6.6 2.7 version, the following is the specific upgrade process, record!


Second, the experimental environment:

System: CentOS 6.5 Final

Python version:

# Python-vpython 2.6.6


Three, installation configuration:


1. Download Python-2.7.3

# cd/home/workspace/# wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2

2. Unzip and install

# Tar XF python-2.7.3.tar.bz# cd python-2.7.3#./configure# make all# make install# do clean #可有可无 # make Distclea N #可有可无


3. Replace the system default Python version

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


4. View the system version

# Python-vpython 2.7.3


5. Replace the python version used by the Yum program

# which yum/usr/bin/yum# Vim/usr/bin/yum modified content: #!/usr/bin/python to #!/usr/bin/python2.6.6

Let Yum use the old version of Python


6, Installation Easy_install

# cd/home/workspace# wget https://pypi.python.org/packages/ba/2c/ 743df41bd6b3298706dfe91b0c7ecdc47f2dc1a3104abeb6e9aa4a45fa5d/ez_setup-0.9.tar.gz # tar XF setup-0.9.tar.gz# CD ez_ setup-0.9 && python ez_setup.py# which easy_install/usr/local/bin/easy_install

Installation Easy_install Complete


7. Install Pip

# yum install-y python-urllib3# easy_install pip# pip listdistribute (0.6.14) pip (9.0.1) setuptools (0.6RC11)

PIP Installation Complete



OK, to this all installation complete!!!

This article is from the "Zheng Xiaoming Technology Blog" blog, make sure to keep this source http://zhengmingjing.blog.51cto.com/1587142/1918263

Centos 6.5 python 2.6.6 upgrade to 2.7.3 and install the Easy_install and PIP tool process

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.