Created
September 7, 2016 23:20
-
-
Save andcam/ccd9d57b661c6405f5d63bfcb3f63790 to your computer and use it in GitHub Desktop.
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
yum -y update | |
yum groupinstall -y 'development tools' | |
yum install -y zlib-devel openssl-devel sqlite-devel bzip2-devel | |
yum install xz-libs | |
wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz | |
xz -d Python-2.7.12.tar.xz | |
tar -xvf Python-2.7.12.tar | |
cd Python-2.7.12 | |
./configure --prefix=/usr/local | |
make; make altinstall | |
export PATH="/usr/local/bin:$PATH" | |
# alias python=python2.7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment