Skip to content

Instantly share code, notes, and snippets.

@pigeonflight
Created May 22, 2018 11:19
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save pigeonflight/39e7513e46b419b8b51f8671445c4ea2 to your computer and use it in GitHub Desktop.
Save pigeonflight/39e7513e46b419b8b51f8671445c4ea2 to your computer and use it in GitHub Desktop.
Install Python 2.7.14 on Ubuntu 14.04
# usage
# bash install-python-2.7.14.sh
sudo apt-get update
sudo apt-get install build-essential checkinstall -y
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev -y
cd /usr/src
sudo wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz
sudo tar xzf Python-2.7.14.tgz
cd Python-2.7.14
sudo ./configure --enable-optimizations
sudo make install
sudo rm -rf /usr/src/Python-2.7.14*
@pigeonflight
Copy link
Author

wget -O- https://goo.gl/vAaqek | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment