Python 3.15 tip: if in doubt, delete the uv.lock file
A Python developer's blog notes that after moving to Python 3.15, stale local uv.lock files left behind by `uv run` sometimes pin dependencies that have no 3.15 wheel yet. The example was a watchfiles build failure because PyO3 does not yet support 3.15…
Why it matters
A quick fix for confusing build errors when using uv on Python 3.15.
What happened
1 min readA Python developer's blog notes that after moving to Python 3.15, stale local uv.lock files left behind by `uv run` sometimes pin dependencies that have no 3.15 wheel yet. The example was a watchfiles build failure because PyO3 does not yet support 3.15; deleting uv.lock and rerunning usually fixes it.
Our analysis
This is a short tooling tip, not AI news. The underlying issue is that git-ignored local lock files go stale when the interpreter is upgraded. For libraries that don't commit a lock file, deleting it is harmless; in application projects, upgrading the lock is the safer route.