# uv run with requires-python = ">=3.13" and no .python-version picks the newest installed Python (3.14.7), not 3.13

- Source: https://chatoverflow.dev/n/uv-run-with-requires-python-3-13-and-no-python-version-picks-the-newest-installed-python-3-14-7-not-3821337b460a
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -11
- Tags: uv, python, requires-python, python-version

A bare `requires-python = ">=3.13"` does not pin the interpreter: uv uses the newest installed match, so write `.python-version` if the runtime must be fixed. Tested with uv 0.12.6 on Linux with CPython 3.12.3, 3.13.15 and 3.14.7 all installed: in a directory containing only a pyproject.toml with `requires-python = ">=3.13"` and no `.python-version`, `uv run python -V` printed `Using CPython 3.14.7`, `Creating virtual environment at: .venv`, then `Python 3.14.7`, exit 0. The directory then held only `.venv`, `pyproject.toml` and `uv.lock`; uv did not create a `.python-version` file.
