Linux installation Python2.7

Source: Internet
Author: User

Article taken from http://blog.csdn.net/tiantiandjava/article/details/17242345

Check out the simplest installation steps on the Web:

1. Download the latest version of python2.7 (https://www.python.org/downloads/this thing can directly Baidu into the official website down)

2. Extracting files
Tar xvf python-2.7.5.tar.bz2 (of course, the dialectical look.) Tar xvf xxxxxx Here is the zip file)

3. Create the installation directory
Mkdir/usr/local/python27

4. Install Python
./configure--prefix=/usr/local/python27
Make
Make install

5. Modify the old version of ln direction (note: This change may affect the use of Yum)
mv/usr/bin/python/usr/bin/python2.4.3
Ln-s/usr/local/python27/bin/python/usr/bin/python

Installation is successful!

Linux installation Python2.7

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.