Centos installation python2.7.10 and Pip

Source: Internet
Author: User

Installing python2.7.10

1. Download and unzip the installation package

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

TAR-XF python-2.7.10.tgz

2. Compiling and installing

./configure--prefix=/usr/local/bin

Make && make install

3. Adjust the/usr/bin/python connection

The command connection needs to be adjusted because the python2.6 is originally installed

mv/usr/bin/python/usr/bin/python2.6.6

Ln-s/usr/local/bin/python2.7/usr/bin/python

4. Modify the Yum reference python2.7 not start problem

Vim/usr/bin/yum

#!/usr/bin/python
For
#!/usr/bin/python2.6.6

Install PIP

Download GET-PIP.PYP file

and execute Python get-pip.py (make sure that Python's version is set correctly)

Centos installation python2.7.10 and Pip

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.