"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