Installing uv
Installation methods
Install uv with our standalone installers or your package manager of choice.
Standalone installer
uv provides a standalone installer to download and install uv:
Use curl to download the script and execute it with sh:
If your system doesn't have curl, you can use wget:
Request a specific version by including it in the URL:
Use irm to download the script and execute it with iex:
Changing the execution policy allows running a script from the internet.
Request a specific version by including it in the URL:
Tip
The installation script may be inspected before use:
Alternatively, the installer or binaries can be downloaded directly from GitHub.
See the reference documentation on the installer for details on customizing your uv installation.
PyPI
For convenience, uv is published to PyPI.
If installing from PyPI, we recommend installing uv into an isolated environment, e.g., with pipx:
However, pip can also be used:
Note
uv ships with prebuilt distributions (wheels) for many platforms; if a wheel is not available for a given platform, uv will be built from source, which requires a Rust toolchain. See the contributing setup guide for details on building uv from source.
Homebrew
uv is available in the core Homebrew packages.
MacPorts
uv is available via MacPorts.
WinGet
uv is available via WinGet.
Scoop
uv is available via Scoop.
Docker
uv provides a Docker image at
ghcr.io/astral-sh/uv.
See our guide on using uv in Docker for more details.
GitHub Releases
uv release artifacts can be downloaded directly from GitHub Releases.
Each release page includes binaries for all supported platforms as well as instructions for using
the standalone installer via github.com instead of astral.sh.
Cargo
uv is available via crates.io.
Note
This method builds uv from source, which requires a compatible Rust toolchain.
Upgrading uv
When uv is installed via the standalone installer, it can update itself on-demand: