uv Error Messages
Fast Python package and project manager from Astral.All uv pages
- uv: error: No `pyproject.toml` found in current directory or any parent directoryuv add, uv sync and uv lock need a project: without pyproject.toml they fail with No pyproject.toml found. Run uv init, cd into the project, or use uv pip.
- uv: error: No solution found when resolving dependenciesuv lock and uv add fail with No solution found when resolving dependencies when version constraints conflict. Read the because chain and relax one pin.
- uv: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system`uv pip install and uv pip sync need a virtual environment: without .venv or VIRTUAL_ENV they fail with No virtual environment found. Run uv venv first.
- uv: error: The lockfile at `uv.lock` needs to be updated, but `--locked` was provideduv sync --locked fails when pyproject.toml changed but uv.lock was not regenerated. Run uv lock and commit uv.lock; --frozen skips the check entirely.