Last active
September 20, 2019 23:33
-
-
Save samclane/87dde334fe848b4ac905f2a1fcd39bfa to your computer and use it in GitHub Desktop.
Installs Python 3.6.8 on an Ubuntu distribution (https://www.quora.com/How-can-one-install-a-specific-version-of-Python-in-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
sudo apt-get install build-essential checkinstall | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev | |
cd ~/Downloads/ | |
wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz | |
tar -xvf Python-3.6.8.tgz | |
cd Python-3.6.8 | |
./configure | |
make | |
sudo checkinstall | |
# When asked about files in the /home directory and in the /home/<username>/Downloads/Python-3.6.8 directories, opt to remove them. Copying the temporary files will take a long time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment