Skip to content

Instantly share code, notes, and snippets.

@guyjin
Last active December 14, 2015 23:09
Show Gist options
  • Save guyjin/5164068 to your computer and use it in GitHub Desktop.
Save guyjin/5164068 to your computer and use it in GitHub Desktop.
install newer python version on CentOS
//Install gcc and openssl & need to ensure you have bzip available.
yum install gcc-c++ openssl-devel bzip2 bzip2-devel
//Replace the version number (2.7.3) with the version you want.
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar -zxvf Python-2.7.3.tgz
cd Python-2.7.3
./configure
make
make install
//Add the install path (/usr/local/bin/python : by default) to ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment