Skip to content

Instantly share code, notes, and snippets.

@skelsec
Last active February 17, 2020 22:35
Show Gist options
  • Save skelsec/70ffc8d854c34c7dfae5b237158824d1 to your computer and use it in GitHub Desktop.
Save skelsec/70ffc8d854c34c7dfae5b237158824d1 to your computer and use it in GitHub Desktop.
Python3.7 install from source under Ubuntu 18.04
# following script will comiple and install Python3.7.1 for Ubuntu 18.04
# the new python version will appear as "python3.7" and "pip3.7"
#
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev
cd /usr/src
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
tar xvf Python-3.7.1.tgz
cd Python-3.7.1
./configure --enable-optimizations
make test
make altinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment