# If in doubt, delete the uv.lock file

- Source: Simon Willison (LLMs)
- Published: 2026-11-01T23:24:22+00:00
- Category: Tech
- Original: https://simonwillison.net/2026/Nov/1/delete-uv-lock-first/
- Canonical: https://groundlevelnews.com/story/if-in-doubt-delete-the-uv-lock-file-ffb30f/

I've been getting the occasional confusing Python dependency error since switching over to Python 3.15 and the rule I'm having to remember is: If in doubt, delete the uv.lock file Most of my projects are libraries which don't include a uv.lock file, since it's rude for a library dependency to lock versions for anything else that uses it. Running uv run pytest etc tends to leave uv.lock files lying

_Ground Level News shows a short summary only; the full article and all rights belong to Simon Willison (LLMs)._
