Python

Update Python

Move to a newer Python, without breaking the one your system relies on.

  1. Update Python
    Terminal
    brew upgrade python

    After a big jump (for example 3.12 to 3.13) you may need to recreate your virtual environments.

Check it worked

  1. Check the version
    Terminal
    python3 --version
  1. Install a newer Python beside the system one
    Terminal · Ubuntu / Debian
    uv python install

    Ubuntu's own python3 is part of the system, so leave it alone. This needs uv (see Start a Python project with uv).

Check it worked

  1. List the Pythons uv manages
    Terminal · Ubuntu / Debian
    uv python list
  1. Update Python
    PowerShell
    winget upgrade Python.Python.3.13

    For a new major version (like 3.14), install it alongside with winget install Python.Python.3.14.

Check it worked

  1. Check the version
    PowerShell
    py --version