- Update Python
brew upgrade pythonAfter a big jump (for example 3.12 to 3.13) you may need to recreate your virtual environments.
Check it worked
- Check the version
python3 --version
- Install a newer Python beside the system one
uv python installUbuntu'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
- List the Pythons uv manages
uv python list
- Update Python
winget upgrade Python.Python.3.13For a new major version (like 3.14), install it alongside with winget install Python.Python.3.14.
Check it worked
- Check the version
py --version