CentOS 6.4 Upgrade Python install Pip

Source: Internet
Author: User

Cenots upgrade Python Trouble died, 6.4 also do not update the next version, died in 2.6.6, true y of the egg ache AH ~ ~ ~

Upgrade Python First, execute

wget Http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgztar zxvf PYTHON-2.7.5.TGZCD python-2.7.5./ Configuremake allmake installmake Cleanmake Distclean

The current path should be/usr/local/bin/python2.7, and by the way, look at the version

/usr/local/bin/python2.7-v

And check the current version.

Python-v

What I'm showing here is 2.6.6.

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

Now look at the version.

Python-v

It should show 2.7.5.

Yum relies on modifications

Nano/usr/bin/yum

Modify the head #!/usr/bin/python to be #!/usr/bin/python2.6.6 able.

Installing Setuptools

wget Http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg--no-check-certificatesh Setuptools-0.6c11-py2.7.egg

Install PIP

wget http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz--no-check-certificatetar ZXF PIP-1.0.2.TAR.GZCD Pip-1.0.2python setup.py Install

Do not know what is going on recently, download Python stuff, must add--no-check-certificate ...

Now, it's easy to install things using PIP install, for example

Pip Install Pelicanpip Install Markdown

It's very convenient.


This article is from the "XFICC" blog, make sure to keep this source http://xficc.blog.51cto.com/1189288/1567562

CentOS 6.4 Upgrade Python install Pip

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.