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*
@RGulde
Copy link

RGulde commented May 23, 2023

Thanks Dude,
With Ubuntu 22.04 steps 3,4 and 6-12 were all that were needed!
$ python
Python 2.7.17 (default, May 23 2023, 11:18:37)
[GCC 11.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

@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