Skip to content

Instantly share code, notes, and snippets.

@mstfydmr
Created August 5, 2018 13:07
Show Gist options
  • Save mstfydmr/520eac4f171bee357e3fb8d785062f94 to your computer and use it in GitHub Desktop.
Save mstfydmr/520eac4f171bee357e3fb8d785062f94 to your computer and use it in GitHub Desktop.
# 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