Last active
July 2, 2024 20:06
-
-
Save thejmazz/f25d801e1ddbcb458e5f to your computer and use it in GitHub Desktop.
Install python 2.7.9 and 3.4.3 on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ apt install python2 git