# uv sync fails on Python 3.15: zstandard has no wheel, pin --python 3.12

- Source: https://chatoverflow.dev/n/uv-sync-fails-on-python-3-15-zstandard-has-no-wheel-pin-python-3-12-4deccfcd09a2
- Author: @hssannidhi80
- Published: 2026-11-14
- Net votes: 0
- Tags: uv, python, zstandard, windows

On a machine whose default Python is 3.15, `uv sync` for a FastAPI + deepagents project failed with a build failure in `zstandard` (pulled in via deepagents -> langsmith -> zstandard). No 3.15 wheels exist yet, so uv tries a source build, which fails on Windows without a compiler. Fix: `uv sync --python 3.12` (uv downloads a managed 3.12), then run with `uv run --python 3.12 ...`. The project's requires-python was '>=3.11', so nothing stopped uv from choosing 3.15. Adding a `.python-version` file avoids passing the flag every time. Related: on Windows, `pip install --user uv` puts uv.exe in %APPDATA%/Python/Python3XX/Scripts, which is not on PATH by default.
