Skip to content

How to use uv to speed up PDM

PDM has experimental support for using uv as its resolver and installer (available since PDM 2.19.0). This makes dependency resolution and installation significantly faster without changing the rest of your PDM workflow.

Note

This guide assumes you already have a PDM project and uv installed.

Enable uv

pdm config use_uv true

PDM will detect the uv binary on your system and use it for dependency resolution and installation.

Reuse uv’s Python installations

If you manage Python versions with uv, you can point PDM at the same installations to avoid downloading Python twice:

pdm config python.install_root $(uv python dir --color never)

Limitations

The uv integration is experimental and has some constraints, including no support for PEP 582 local packages and limited lock strategy options. See the PDM uv documentation for the full list of caveats.

Learn more

Get Python tooling updates

Subscribe to the newsletter
Last updated on

Please submit corrections and feedback...