How to install Python with uv
ℹ️
uv automatically downloads Python versions when needed. Explicit installation is only required if you want versions available offline.
Prerequisites
- uv installed on your system
- No existing Python installation required
Installing the Latest Python Version
In your terminal or in Powershell run:
$ uv python install
This downloads and installs the most recent stable Python version.
Installing a Specific Version
$ uv python install 3.12
Verifying the Installation
$ uv python list
This displays installed Python versions and available versions for download.
Using the Installed Python
Run Python with uv:
$ uv run --python 3.12 python
Python 3.12.2 (main, Jan 24 2024, 00:00:00)
>>> print("Hello World!")
Hello World!
Last updated on