Back to Daily Feed 
Python UV: When to Delete Your uv.lock File
Originally published on Simon Willison's Weblog by Simon Willison
View Original Article
Share this article:
Summary & Key Takeaways
uv.lockfiles can cause Python dependency errors, especially with new Python versions.- These files pin dependency versions, which can conflict with newer Python wheels.
- Libraries should generally not include
uv.lockfiles. - Deleting
uv.lockand re-runninguvcommands often resolves build issues.
Our Commentary
This is a classic "TIL" moment. I've definitely hit similar dependency walls in other ecosystems. It's a good reminder that sometimes the simplest solution is to just nuke the lock file and let the system rebuild. There's something satisfying about that.
View Original Article
Share this article: