Review: Only one extension source can exist. When you plan to install the second one, you need to delete the first one, rpm -e epel-release --- XiaoQ
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
cd /usr/local/include/python2.7
cp -a ./* /usr/local/include/
cd /usr/bin
mv python python2.6
ln -s /usr/local/bin/python
vim /usr/bin/yum
! /usr/bin/python --> #!/usr/bin/python2.6
Recommended Posts