Skip to content

Instantly share code, notes, and snippets.

@DrSnowbird
Created August 16, 2018 18:06
Show Gist options
  • Save DrSnowbird/de18be9b35c908faf441c50115ffbe1a to your computer and use it in GitHub Desktop.
Save DrSnowbird/de18be9b35c908faf441c50115ffbe1a to your computer and use it in GitHub Desktop.
Python3.7 installed to Ubuntu 16.04
# ref: https://serverfault.com/questions/918335/best-way-to-run-python-3-7-on-ubuntu-16-04-which-comes-with-python-3-5
# Install requirements
apt-get install -y build-essential
apt-get install -y checkinstall
apt-get install -y libreadline-gplv2-dev
apt-get install -y libncursesw5-dev
apt-get install -y libssl-dev
apt-get install -y libsqlite3-dev
apt-get install -y tk-dev
apt-get install -y libgdbm-dev
apt-get install -y libc6-dev
apt-get install -y libbz2-dev
apt-get install -y zlib1g-dev
apt-get install -y openssl
apt-get install -y libffi-dev
apt-get install -y python3-dev
apt-get install -y python3-setuptools
apt-get install -y wget
# Prepare to build
mkdir /tmp/Python37
cd /tmp/Python37
# Pull down Python 3.7, build, and install
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
tar xvf Python-3.7.0.tar.xz
cd /tmp/Python37/Python-3.7.0
./configure
make altinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment