software · Q404
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]
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]
Capabilities & limitations
Project locking
supportedMaintains a uv-specific universal lockfile and managed environment.[3]
Dependency and environment management · Windows, macOS, Linux · Package availability and runtime requirements apply
1 source · check evidence
pyproject.toml; .venv; uv.lock; pylock.toml
vendor · checked 2026-10-07Exact pip configuration compatibility
unsupportedDoes not read pip.conf or pip-specific environment variables.[5]
Dependency and environment management · Windows, macOS, Linux · Package availability and runtime requirements apply
1 source · check evidence
Intentional pip differences; configuration files
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
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
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 390 | 2026-10-11 20:44:19 | /* wbeditentity-create-item:0| */ sf:57e781a9-4e2f-4555-965c-47c997130d1d:v1 | Add uv with cited dependency workflows, lockfile portability and migration limits; no package installation or execution performed. | attribution: /proposals/57e781a9-4e2f-4555-965c-47c997130d1d |