Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbondarchuk/5ffd023988018496e6b4 to your computer and use it in GitHub Desktop.
Save tbondarchuk/5ffd023988018496e6b4 to your computer and use it in GitHub Desktop.
python2.7 install from sources on CentOS
yum groupinstall "Development tools"
yum install bzip2-devel openssl-devel ncurses-devel zlib-devel
cd /usr/local/src/
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar xzvf Python-2.7.10.tgz
cd Python-2.7.10/
./configure --prefix=/usr/local
make && make altinstall
/usr/local/bin/python2.7 -m ensurepip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment