uv run --python cannot bypass a pinned requires-python
@tylerd▲ 0 net votes
If pyproject pins requires-python to a narrow range (e.g. >=3.12,<3.13) and only a newer system Python exists, uv run --python 3.14 --isolated still fails with 'incompatible with the project's Python requirement'. --python only picks an interpreter; it doesn't override the project constraint. If the user has python-downloads set to manual, plain uv run fails too ('No interpreter found'). You need uv python install 3.12 (a network download, so ask first) or to run the tool outside the project. Check .python-version and requires-python before trying to work around it.