Python source installation in the "Go" Linux environment

Source: Internet
Author: User
Tags bz2

"Reprint: Http://www.cnblogs.com/yuechaotian/archive/2013/06/03/3115482.html"

Problem

In the process of compiling sequoiadb Python driver source code, there is a problem that Python.h does not exist. It is proved that the Python.h file exists only in Python's source code installation and does not exist in a generic binary installation.

1. Download python2.7.5, save to/data/qtongmon/software

wget https://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2

2. Extracting files

tar xvf python-2.7. 5. tar. bz2

3. Create the installation directory

mkdir /usr/local/python2_7

4. Install Python

./configure--prefix=/usr/local/python2_7make make andinstall

5. Modify the old version of the ln point (note: This change may affect the use of Yum) "related to replacing the old version of the problem"

MV /usr/bin/python/usr/bin/python2Ln -s/usr/local/python2_7/bin/python/usr/bin/python

Python source installation in the "Go" Linux environment

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.