Created
May 11, 2024 17:41
-
-
Save CynicRus/5a2bd5a06a699cd0139aaff887f5cab5 to your computer and use it in GitHub Desktop.
build python2 on ubuntu 22.04
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
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz | |
sudo tar xzf Python-2.7.9.tgz | |
cd Python-2.7.9 | |
sudo ./configure --enable-optimizations | |
sudo make altinstall | |
sudo ln -sfn '/usr/local/bin/python2.7' '/usr/bin/python2' | |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment