Last active
December 12, 2023 01:40
-
-
Save freejoe76/234c484b33ed6d3d0d56617d70f6743f to your computer and use it in GitHub Desktop.
Install multiple versions of python on debian / ubuntu server
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
# Find the URL of the python you want here: https://www.python.org/downloads/source/ , you're looking for the "Gzipped source tarball" link of the version you want. | |
# We're doing 3.10 here for this example. | |
wget https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz | |
tar -xf Python-3.10.13.tgz && cd Python-3.10.13 | |
./configure --enable-optimizations | |
make && sudo make altinstall | |
# This won't override an existing python3 – it creates a python3.10 executable. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment