Skip to content

Instantly share code, notes, and snippets.

@ratacibernetica
Created June 5, 2018 15:13
Show Gist options
  • Save ratacibernetica/467059c537a09c9e998cba55a713667c to your computer and use it in GitHub Desktop.
Save ratacibernetica/467059c537a09c9e998cba55a713667c to your computer and use it in GitHub Desktop.
Install Python 2.7 on Centos
# install GCC
yum install gcc openssl-devel bzip2-devel
# Download Python 2.7 & extract
cd /usr/src
wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
tar xzf Python-2.7.15.tgz
# Install Python 2.7
cd Python-2.7.15
./configure --enable-optimizations
make altinstall
# Check Python Version
/usr/local/bin/python2.7 -V
# Python 2.7.15
# Install PIP
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python2.7 get-pip.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment