Skip to content

Instantly share code, notes, and snippets.

@szepnapot
Created September 6, 2018 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szepnapot/fd59c4421c4e107c52127c55ffe352aa to your computer and use it in GitHub Desktop.
Save szepnapot/fd59c4421c4e107c52127c55ffe352aa to your computer and use it in GitHub Desktop.
Install Python 3.7 with Black on Ubuntu 16.04
# 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
# Install Black
python3.7 -m pip install -U black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment