Created
June 3, 2024 03:50
-
-
Save sofianhw/76b281881d955eedd91bcc4a42826f3b to your computer and use it in GitHub Desktop.
upgrade to python3.8
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 | |
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev liblzma-dev | |
curl -O https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz | |
tar -xf Python-3.8.10.tar.xz | |
cd Python-3.8.10 | |
./configure --enable-optimizations | |
make -j 4 | |
sudo make altinstall | |
sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.8 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment