Skip to content

Instantly share code, notes, and snippets.

@ansulev
Forked from pigeonflight/install-python-2.7.14.sh
Last active May 23, 2023 18:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ansulev/65f61e5b457f795898be7c7488e1eaee to your computer and use it in GitHub Desktop.
Save ansulev/65f61e5b457f795898be7c7488e1eaee to your computer and use it in GitHub Desktop.
Install Python 2.7.17 on Ubuntu 14.04
# usage
# bash install-python-2.7.17.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.17/Python-2.7.17.tgz
sudo tar xzf Python-2.7.17.tgz
cd Python-2.7.17
sudo ./configure --enable-optimizations
sudo make install
sudo rm -rf /usr/src/Python-2.7.17*
@ansulev
Copy link
Author

ansulev commented May 23, 2023 via email

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