Skip to content

Instantly share code, notes, and snippets.

@molcay
Last active August 6, 2019 13:01
Show Gist options
  • Save molcay/26dbd1aa9a6efcac026f65ff992c824d to your computer and use it in GitHub Desktop.
Save molcay/26dbd1aa9a6efcac026f65ff992c824d to your computer and use it in GitHub Desktop.
Python v3.7.4. installation commands for Debian 9-based systems.
sudo apt update -qq
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget curl
mkdir -p /opt/Downloads && cd /opt/Downloads
curl -O https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
tar xf Python-3.7.4.tar.xz
cd Python-3.7.4
./configure - enable-optimizations
make -j $(nproc)
sudo make altinstall
# BONUS
sudo ln -S /usr/local/bin/pip3.7 /usr/local/bin/pip
sudo pip install --upgrade pip
pip install --user --upgrade pipenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment