hiw3c 日报精选
Simon Willison 网页快照

如有疑问,删除uv.lock文件。

原文标题 · If in doubt, delete the uv.lock file

自从切换到 Python 3.15 以来,我时不时会遇到让人摸不着头脑的 Python 依赖错误,我得记住一条规则:拿不准的时候,就删除 uv.lock 文件。我的大多数项目都是库,并不包含 uv.lock 文件——毕竟库依赖为使用它的其他东西锁定版本,这种做法不太合适。运行 uv run pytest 之类的命令往往会留下 uv.lock 文件,这些文件已列在 .gitignore 中,因此不会

来源:Simon Willison · simonwillison.net

正文为英文,可一键机器翻译(仅首次需要等待)

Simon Willison’s Weblog

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:

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 around, which are listed in .gitignore and so do not get committed to my repositories.

But... sometimes that uv.lock pins a version of a dependency that doesn't yet have a Python 3.15 wheel. An example from earlier today:

error: Failed to build `watchfiles==1.1.1` cause: Call to `maturin.build_wheel` failed error: the configured Python interpreter version (3.15) is newer than PyO3's maximum supported version (3.14)

Deleting that file and running uv run pytest again usually fixes the problem.

Recent articles

The U.S. Census Bureau and “Super Intelligence” - 2nd November 2026

The October inflection point for vibe game development - 28th October 2026

Battle Drones - a vibe coded RTS with audio-based multiplayer - 20th October 2026

Hello Python 3.15, goodbye 3.10, and now I can use 3.11 - 12th October 2026

This is a note by Simon Willison, posted on 1st November 2026 .

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.