Last active
June 2, 2017 11:55
-
-
Save kcoder666/64b2230cb48fa05f75e65e544778a63a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# Install Python 2.7.13 | |
yum groupinstall -y "Development Tools" | |
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel wget | |
cd /usr/src | |
wget --no-check-certificate https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz | |
tar xzf Python-2.7.13.tgz | |
cd Python-2.7.13 | |
./configure --enable-shared | |
make altinstall | |
python2.7 -V | |
# Install Setuptools | |
cd .. | |
wget --no-check-certificate https://pypi.python.org/packages/a9/23/720c7558ba6ad3e0f5ad01e0d6ea2288b486da32f053c73e259f7c392042/setuptools-36.0.1.zip#md5=430eb106788183eefe9f444a300007f0 | |
unzip setuptools-36.0.1.zip | |
cd setuptools-36.0.1 | |
python2.7 setup.py install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment