Review: The extension source can only exist one when it is intended to install the second need to remove the first, rpm-e epel-release---small Q
-----------------------------------------------------------------------------------------------------
python2.7 Installation
Environment: CentOS 6.5
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
Tar xvzf python-2.7.8.tgz
CD Python-2.7.8
./configure--prefix=/usr/local
Make--jobs= ' grep processor/proc/cpuinfo | Wc-l '
Make install
## will be python Copy the header file to a standard directory to avoid compiling ansible , the desired header file cannot be found
cd/usr/local/include/python2.7
Cp-a./*/usr/local/include/
## back up older versions of python , and the symbolic link to the new version of the python
Cd/usr/bin
MV Python python2.6
Ln-s/usr/local/bin/python
## Modify Yum script so that it points to the old version of the python , it has been prevented from running
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/89/19/wKioL1gHwCPwxzu-AABebZH_ra0545.png "title=" 1.png " alt= "Wkiol1ghwcpwxzu-aabebzh_ra0545.png"/>
Vim/usr/bin/yum
!/usr/bin/python-#!/usr/bin/python2.6
This article is from the "North Ice--q" blog, please be sure to keep this source http://beibing.blog.51cto.com/10693373/1863687
Python--CENTOS6 Install python2.7 version