Problem scenario
On your Linux CentOS 6.x server you run “python –version” and find that Python 2.6 is installed. You want Python 2.7 to be installed instead. You do not want to use binaries (e.g., .rpm packages) or yum repositories. What do you do?
Solution
Run these commands:
curl -k https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tar.xz > Python-2.7.14.tar.xz
sudo mv Python-2.7.14.tar.xz /usr/bin/
cd /usr/bin/
sudo tar xf Python-2.7.14.tar.xz
cd Python-2.7.14
sudo ./configure –prefix=/usr/local
sudo make &&
…
Continue reading “How Do You Upgrade Python 2.6 to Python 2.7 on CentOS 6?”