Last active
November 14, 2022 05:51
-
-
Save jcopps/dff7eefa7dbb3fa688e84f22c9017bf0 to your computer and use it in GitHub Desktop.
Install python3.9.7 and pip
This file contains hidden or 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 | |
sudo apt install build-essential libncurses5-dev zlib1g-dev libnss3-dev libgdbm-dev libssl-dev libsqlite3-dev libffi-dev libreadline-dev curl libbz2-dev | |
sudo wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz | |
tar -xvf Python-3.9.7.tgz | |
cd Python-3.9.7 | |
./configure --enable-optimizations | |
#Here 8 indicates the number of cores | |
make -j 8 | |
sudo make altinstall | |
sudo apt install python3-pip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment