Last active
August 21, 2016 14:19
-
-
Save samehmohamed88/9145ef6498afd726f34e93f73cac03be 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
#!/bin/bash | |
set -xe | |
yum -y update | |
yum install -y zlib-devel openssl-devel sqlite-devel bzip2-devel xz-libs gcc g++ make wget | |
# Install Python 2.7.8 | |
curl -o /root/Python-2.7.9.tar.xz https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz | |
tar -xf /root/Python-2.7.9.tar.xz -C /root | |
cd /root/Python-2.7.9 && ./configure --prefix=/usr/local && make && make altinstall | |
# Download Setuptools and install pip and virtualenv | |
wget https://bootstrap.pypa.io/ez_setup.py -O - | /usr/local/bin/python2.7 | |
/usr/local/bin/easy_install-2.7 pip | |
/usr/local/bin/pip2.7 install virtualenv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment