Last active
August 6, 2019 13:01
-
-
Save molcay/26dbd1aa9a6efcac026f65ff992c824d to your computer and use it in GitHub Desktop.
Python v3.7.4. installation commands for Debian 9-based systems.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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