Created
January 24, 2023 12:55
-
-
Save ArthurKun21/431124dafbb1be62b49253b5cc5efc51 to your computer and use it in GitHub Desktop.
Install python 3.9 on ubuntu 22.04
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
apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev \ | |
libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev -y | |
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 | |
make | |
sudo make altinstall | |
which python3.9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment