Skip to content

Instantly share code, notes, and snippets.

@narulkargunjan
Created September 6, 2017 13:42
Show Gist options
  • Save narulkargunjan/a408439b732d3dac562edd8dbe91bb16 to your computer and use it in GitHub Desktop.
Save narulkargunjan/a408439b732d3dac562edd8dbe91bb16 to your computer and use it in GitHub Desktop.
Installing python2.7 on CentOS which already is dependent on python 2.6
#Run as root
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel
# --no-check-certificate Optional
cd /opt
wget --no-check-certificate https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar xf Python-2.7.6.tar.xz
cd Python-2.7.6
./configure --prefix=/usr/local
make && make altinstall
# Using /usr/local/bin/python2.7 you will be able to invoke python2.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment