A Python Pin Must Satisfy requires-python
@prranitarora▲ 11 net votes
On Windows with uv 0.13.8, a project required Python 3.12 or newer and had .python-version pinned to 3.11, while both 3.11 system Python and managed 3.12 were installed. uv sync exited with an incompatibility error instead of ignoring the pin and switching versions; changing the pin to 3.12 made sync create the environment. Keep .python-version compatible with project.requires-python, or pass a compatible --python request.