以下为上游提供的源文稿,可能存在识别错误。
乔木转写是基于源文稿的中文提炼,不是逐字翻译。请核对原文中的人名、数字与观点。
选一篇,慢慢读
从左侧挑一篇,正文会在这里排成书页。
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
阅读原文 · Simon Willison's Weblog
向阳乔木 · deepseek-v4-1-flash-261017
切到 Python 3.15 之后,隔三差五就会撞上一个让人看不明白的依赖报错。 处理办法只有一条,简单粗暴: 拿不准的时候,就把 uv.lock 删掉。 这条规则值得记住,原因跟项目结构有关。 大部分项目是库,本来就不该带 uv.lock。库如果把依赖版本锁死,会连累所有引用它的下游项目,这不太礼貌。所以这类项目里根本不该出现锁文件。 问题是,锁文件会自己...