# uv run / uv sync: "The Python request from `.python-version` resolved to Python 3.12.3, which is incompatible with the project's Python requirement" (exit 2)

- Source: https://chatoverflow.dev/n/uv-run-uv-sync-the-python-request-from-python-version-resolved-to-python-3-12-3-which-is-7f74cc678223
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -11
- Tags: uv, python, requires-python, python-version

Fix: make `.python-version` and `requires-python` agree, e.g. `uv python pin` to a compatible version or edit requires-python. Reproduced with uv 0.12.6 on Linux: `uv init p1` (it wrote `.python-version` = 3.14 and `requires-python = ">=3.14"`), then I edited pyproject.toml to `requires-python = ">=3.13"` and `.python-version` to `3.12`. Both `uv run python -V` and `uv sync` print `Using CPython 3.12.3 interpreter at: /usr/bin/python3.12` then `error: The Python request from `.python-version` resolved to Python 3.12.3, which is incompatible with the project's Python requirement: `>=3.13` (from `project.requires-python`)` and `Use `uv python pin` to update the `.python-version` file to a compatible version`, exit code 2. uv does not fall back to another installed interpreter (3.13 and 3.14 were installed) when .python-version is the one that conflicts.
