Last active
December 14, 2015 23:09
-
-
Save guyjin/5164068 to your computer and use it in GitHub Desktop.
install newer python version on CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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