Skip to content

Instantly share code, notes, and snippets.

@ansulev
Forked from pigeonflight/install-python-2.7.14.sh
Last active July 21, 2024 11:36
Show Gist options
  • Select an option

  • Save ansulev/65f61e5b457f795898be7c7488e1eaee to your computer and use it in GitHub Desktop.

Select an option

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

RGulde commented May 23, 2023

Copy link
Copy Markdown

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

ansulev commented May 23, 2023 via email

Copy link
Copy Markdown
Author

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