Skip to content

Instantly share code, notes, and snippets.

@thejmazz
Last active July 2, 2024 20:06
Show Gist options
  • Save thejmazz/f25d801e1ddbcb458e5f to your computer and use it in GitHub Desktop.
Save thejmazz/f25d801e1ddbcb458e5f to your computer and use it in GitHub Desktop.
Install python 2.7.9 and 3.4.3 on Ubuntu
# Dependencies for installing Python
sudo apt-get install build-essential
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
# Download Python 2.7.9 and extract
mkdir $HOME/Downloads
cd $HOME/Downloads
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
tar -xvf Python-2.7.9.tgz
# Install Python 2.7.9
cd $HOME/Downloads/Python-2.7.9
./configure
make
sudo make install
# Download python 3.4.3 and extract
cd $HOME/Downloads
wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
tar -xvf Python-3.4.3.tgz
# Install Python 3.4.3
cd $HOME/Downloads/Python-3.4.3
./configure
make
sudo make install
@MdMunnaislam474
Copy link

$ apt install python2 git

@Blues-Hailfire
Copy link

Amazing thank you!

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