# uv

Python package, project, interpreter and tool\-environment manager\.

ID: Q404 · Revision: 390

Type: software · License: MIT OR Apache\-2\.0[^uv-license] · Status: active

Website: https://docs.astral.sh/uv/



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\.[^uv]

## 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\.[^uv-files][^uv-sync]

## 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\.[^uv-files]

## 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\.[^uv-sync]

## 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\.[^uv-pip]

## 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\.[^uv][^uv-license][^uv-files]

## Substitution considerations

uv can substitute for [Poetry](/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\.[^uv][^uv-files][^poetry-basic][^poetry-repo]

## Capabilities and substitutions

### Project locking — supported

Maintains a uv\-specific universal lockfile and managed environment\.[^uv-files]

Use case: Dependency and environment management · Platforms: Windows, macOS, Linux · Region: Package availability and runtime requirements apply

### Exact pip configuration compatibility — unsupported

Does not read pip\.conf or pip\-specific environment variables\.[^uv-pip]

Use case: Dependency and environment management · Platforms: Windows, macOS, Linux · Region: Package availability and runtime requirements apply

### [Substitute for Poetry](/poetry) — limited

A project\-management alternative; lockfiles and tool\-specific source/build settings need migration\.[^uv][^poetry-basic][^poetry-repo]

Use case: Dependency and environment management · Platforms: Windows, macOS, Linux · Region: Package availability and runtime requirements apply

## References

[^uv-license]: [uv licensing](<https://docs.astral.sh/uv/reference/policies/license/>) — MIT or Apache\-2\.0 at user's option (vendor; retrieved 2026-10-07T04:32:42Z)

[^uv]: [uv introduction](<https://docs.astral.sh/uv/>) — Projects; Python versions; scripts/tools; platforms (vendor; retrieved 2026-10-07T04:31:57Z)

[^uv-files]: [uv project structure](<https://docs.astral.sh/uv/concepts/projects/layout/>) — pyproject\.toml; \.venv; uv\.lock; pylock\.toml (vendor; retrieved 2026-10-07T04:32:07Z)

[^uv-sync]: [uv locking and syncing](<https://docs.astral.sh/uv/concepts/projects/sync/>) — Automatic lock/sync; locked and frozen modes (vendor; retrieved 2026-10-07T04:32:28Z)

[^uv-pip]: [uv compatibility](<https://docs.astral.sh/uv/pip/compatibility/>) — Intentional pip differences; configuration files (vendor; retrieved 2026-10-07T04:32:14Z)

[^poetry-basic]: [Poetry basic usage](<https://python-poetry.org/docs/basic-usage/>) — Package/non\-package modes; pyproject and lockfile; virtual environments (vendor; retrieved 2026-10-07T04:32:28Z)

[^poetry-repo]: [Poetry repositories](<https://python-poetry.org/docs/repositories/>) — Primary source disables implicit PyPI; source settings absent from package metadata (vendor; retrieved 2026-10-07T04:32:42Z)

Source revision: https://substitutefor.net/entities/Q404?revision=390
