Created
June 5, 2018 15:13
-
-
Save ratacibernetica/467059c537a09c9e998cba55a713667c to your computer and use it in GitHub Desktop.
Install Python 2.7 on Centos
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
# 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