Skip to content

Instantly share code, notes, and snippets.

@freejoe76
Last active December 12, 2023 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freejoe76/234c484b33ed6d3d0d56617d70f6743f to your computer and use it in GitHub Desktop.
Save freejoe76/234c484b33ed6d3d0d56617d70f6743f to your computer and use it in GitHub Desktop.
Install multiple versions of python on debian / ubuntu server
# 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