Created
January 23, 2022 19:19
-
-
Save mishailovic/79f32ff8dd96a27e8b69a4b79b8f6b82 to your computer and use it in GitHub Desktop.
Install any Python version
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
version=3.10.2 | |
sudo apt-get install build-essential checkinstall libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev | |
wget https://www.python.org/ftp/python/$version/Python-$version.tgz | |
tar -xvf Python-$version.tgz | |
cd Python-$version | |
./configure | |
make | |
sudo checkinstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment