Get the daily emailDaily email
  1. Home
  2. Guides
  3. This story

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…

Published Read the original

Why it matters

A quick fix for confusing build errors when using uv on Python 3.15.

What happened

1 min read

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; deleting uv.lock and rerunning usually fixes it.

inscraper analysis

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.

More in Guides