Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix doubled-up code block

...

  • You can download, build and install CPython from sources.
  • If you are an Ubuntu user, you could add a third-party repository 'Deadsnakes' and install the missing versions via apt. If you install from Deadsnakes, make sure to also install python#.#-dev, python#.#-venv and python#.#-distutils packages.
  • You can use PyEnv to download and install Python versions (Recommended).
    Installation steps may look  as follows:
    1. Follow the steps below in How to setup pyenv.
    2. Install Python intepreter for each supported Python minor version. Leaving out the patch version will install the latest.

      Code Block
      languagebash
      pyenv install 3.9 
      pyenv install 3.10 
      pyenv install 3.11
      pyenv install 3.12

      For major.minor.patch versions currently used by Jenkins cluster, see  Current Installations.

    3. Make installed interpreters available in your shell by first running

      Code Block
      languagebash
      pyenv global 3.9 3.10 3.11 3.12

      :

      Code Block
      languagebash
      pyenv global 3.9 3.10 3.11 3.12


    4. (OPTIONAL) Pyenv will sometimes fail to make these interpreters directly available without a local configuration. If you see errors trying to use python3.x , then run also pyenv local  

      Code Block
      languagebash
      pyenv local 3.9 3.10 3.11 3.12


...