uv Python package, project, interpreter and tool-environment manager.
Overview uv is a Python package and project manager developed by Astral. It combines project dependency management with Python-version handling, isolated script execution and command-line tool environments. A separate pip-style interface supports familiar installation workflows, while the project interface uses its own metadata, lockfile and synchronization model.[2]
Contents Project environments A uv project is identified by pyproject.toml, with a managed environment normally stored in .venv. The project's dependency declarations and the installed environment serve different purposes. uv run and uv sync can create or refresh that environment, so a command intended to run application code may first perform dependency-management work.[3] [4]
Lockfiles and interchange The uv.lock file records resolved dependencies across Python markers such as platform, architecture and interpreter version. Its format is specific to uv. The standardized pylock.toml format is supported as an export target and through the pip-style interface, but cannot express all uv project functionality. A portable resolution file is therefore not the same as a complete transfer of project configuration.[3]
Controlling changes By default, commands using the project environment can lock and synchronize automatically. The locked option requires an up-to-date lockfile and errors rather than changing it. Frozen mode instead uses the existing lock without checking its freshness. These settings answer different questions: whether configuration and lock agree, and whether a particular recorded resolution should be reused.[4]
Compatibility limits The pip-style commands target common pip and pip-tools workflows rather than exact behavioral compatibility. In particular, uv does not read pip-specific configuration such as pip.conf or PIP_INDEX_URL. Migration must therefore include repository and environment configuration, not merely replacing a command name in automation.[5]
Platforms and licensing uv supports Windows, macOS and Linux. Its code is available under either MIT or Apache-2.0 at the user's option. This licensing applies to the manager, not every Python distribution or package it downloads. Package availability and the project's supported interpreter range still determine whether a resolved environment can be installed for a particular target.[1] [2] [3]
Substitution considerations uv can substitute for Poetry for Python project dependency management. Both provide project declarations and resolved dependency records, but tool-specific settings and lockfiles require migration. The decision should include package-source rules, build configuration and execution behavior rather than treating a shared pyproject.toml filename as complete compatibility.[2] [3] [6] [7]
References uv licensing MIT or Apache-2.0 at user's option
vendor · retrieved 2026-10-07 uv introduction Projects; Python versions; scripts/tools; platforms
vendor · retrieved 2026-10-07 uv project structure pyproject.toml; .venv; uv.lock; pylock.toml
vendor · retrieved 2026-10-07 uv locking and syncing Automatic lock/sync; locked and frozen modes
vendor · retrieved 2026-10-07 uv compatibility Intentional pip differences; configuration files
vendor · retrieved 2026-10-07 Poetry basic usage Package/non-package modes; pyproject and lockfile; virtual environments
vendor · retrieved 2026-10-07 Poetry repositories Primary source disables implicit PyPI; source settings absent from package metadata
vendor · retrieved 2026-10-07 Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.