...
 
Commits (2)
#!/usr/bin/env bash
sudo apt-get update -y
# install build dependencies:
sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y
# download source:
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
# extract to current folder:
tar xf Python-3.7.4.tar.xz
pushd Python-3.7.4
# configure and build python:
./configure
make -j 4
sudo make altinstall
# remove source folders
cd ..
sudo rm -r Python-3.7.0
rm Python-3.7.0.tar.xz