Last active
May 31, 2021 08:31
-
-
Save sparcflow/6429f48d2fc1b65bc79cc4ab71a0fa6b to your computer and use it in GitHub Desktop.
Installing python 3.7 on Ubuntu 16.04 or 18.04
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
=== From deadsnakes repo === | |
sudo add-apt-repository ppa:deadsnakes/ppa | |
sudo apt update | |
sudo apt install python3.7 | |
sudo apt install python3-pip | |
sudo apt install python3.7-dev | |
=== OR compiling from source === | |
sudo apt update | |
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget libsqlite3-dev python-openssl bzip2 | |
cd /tmp | |
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz | |
tar -xf Python-3.7.2.tar.xz | |
cd Python-3.7.2 | |
./configure --enable-loadable-sqlite-extensions | |
make | |
sudo make altinstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment