{"version":"1.0","generated_at":"2026-11-02T10:49:23.509839","id":3744,"slug":"if-in-doubt-delete-the-uv-lock-file","title":"如有疑问，就删除 uv.lock 文件","summary":"Simon Willison 在切换到 Python 3.15 后遇到依赖构建错误，经验规则是删除本地 uv.lock 并重跑测试；该做法对库项目排障有用，但删除锁文件会带来版本漂移风险。","abstract":"如有疑问，就删除 uv.lock 文件 Simon Willison 在切换到 Python 3.15 后遇到依赖构建错误，经验规则是删除本地 uv.lock 并重跑测试；该做法对库项目排障有用，但删除锁文件会带来版本漂移风险。 Simon Willison 在切换到 Python 3.15 后遇到依赖构建错误，经验规则是删除本地 uv.lock 并重跑测试；该做法对库项目排障有用，但删除锁文件会带来版本漂移风险。 原贴提到：I've been getting the occasional confusing Python dependency error since 来源：simonwillison.net 自从切换到 Python 3.15 后，我偶尔会遇到令人困惑的 Python 依赖错误，而我不得不记住的规则是：如有疑问，就删除 uv.lock 文件。 我的大多数项目都是库，不包含 uv.lock 文件，因为库依赖为使用它的其他任何东西锁定版本是失礼的。 运行 uv run pytest 等往往会留下 uv.lock 文件，这些文件列在 .gitignore 中，因此不会被提交到我的仓库。 但是……有时那个 uv.lock 会固定一个尚未有 Python 3.15 wheel 的依赖版本。 今天早些时候的一个例子： error: Failed to build `watchfiles==1.1.1` cause: Call to `maturin.build_wheel` failed error: the configured Python interpreter…","access_level":"member","access_label":"免费阅读","access_mode":"full","is_preview":false,"canonical_url":"https://opc.beizhux.com/content/3744/if-in-doubt-delete-the-uv-lock-file","html_url":"https://opc.beizhux.com/content/3744/if-in-doubt-delete-the-uv-lock-file","json_url":"https://opc.beizhux.com/content/3744/if-in-doubt-delete-the-uv-lock-file.json","published_at":"2026-11-02T07:24:22","updated_at":"2026-11-02T10:15:45","category":{"slug":"ai-skills","name":"AI技能杠杆"},"source":{"site":"simonwillison.net","author":"Simon Willison","url":"https://simonwillison.net/2026/Nov/1/delete-uv-lock-first/"},"tags":["PyO3","Python","TIL","uv","uv.lock","依赖管理","排障"],"topics":[{"slug":"agent-workflow","name":"Agent工作流","url":"https://opc.beizhux.com/topics/agent-workflow","reason":"这篇内容命中「Agent、工作流」等主题信号。"},{"slug":"ai-super-individual","name":"AI超级个体","url":"https://opc.beizhux.com/topics/ai-super-individual","reason":"这篇内容命中「技能」等主题信号。"},{"slug":"ai-side-business","name":"AI副业","url":"https://opc.beizhux.com/topics/ai-side-business","reason":"这篇内容命中「项目」等主题信号。"}],"keywords":["AI技能杠杆","Agent工作流","AI超级个体","AI副业","工具","Cursor","Agent","智能体","工作流","Claude Code","AI编程","副业"],"questions":[{"question":"如有疑问，就删除 uv.lock 文件主要讲什么？","answer":"Simon Willison 在切换到 Python 3.15 后遇到依赖构建错误，经验规则是删除本地 uv.lock 并重跑测试；该做法对库项目排障有用，但删除锁文件会带来版本漂移风险。"},{"question":"这篇文章最值得关注的要点是什么？","answer":"Simon Willison 在切换到 Python 3.15 后遇到依赖构建错误，经验规则是删除本地 uv.lock 并重跑测试；该做法对库项目排障有用，但删除锁文件会带来版本漂移风险。；原贴提到：I've been getting the occasional confusing Python dependency error since；来源：simonwillison.net"},{"question":"这篇文章和哪些AI专题相关？","answer":"它适合放在Agent工作流、AI超级个体、AI副业专题里阅读。 关联原因：这篇内容命中「Agent、工作流」等主题信号。；这篇内容命中「技能」等主题信号。；这篇内容命中「项目」等主题信号。"},{"question":"阅读这篇文章建议先理解哪些关键词？","answer":"建议先理解工具、Cursor、Agent、智能体、工作流这些关键词，再结合正文判断工具、机会或风险是否值得进入自己的工作流。"}],"terms":[{"slug":"tools","name":"工具","definition":"在AI觉醒星球里，「工具」属于「AI工具」方向。围绕AI工具、模型能力、自动化流程和真实使用场景做整理，优先关注能提升效率、降低成本和创造新交付的工具。 不只看工具热度，更看它能不能进入真实流程。","topic_slug":"ai-tools","topic_name":"AI工具","topic_title":"AI工具：模型、插件、自动化与实战场景","topic_url":"https://opc.beizhux.com/topics/ai-tools","topic_path":"/topics/ai-tools","url":"https://opc.beizhux.com/glossary/tools","path":"/glossary/tools","json_url":"https://opc.beizhux.com/glossary/tools.json"},{"slug":"cursor","name":"Cursor","definition":"在AI觉醒星球里，「Cursor」属于「AI工具」方向。围绕AI工具、模型能力、自动化流程和真实使用场景做整理，优先关注能提升效率、降低成本和创造新交付的工具。 不只看工具热度，更看它能不能进入真实流程。","topic_slug":"ai-tools","topic_name":"AI工具","topic_title":"AI工具：模型、插件、自动化与实战场景","topic_url":"https://opc.beizhux.com/topics/ai-tools","topic_path":"/topics/ai-tools","url":"https://opc.beizhux.com/glossary/cursor","path":"/glossary/cursor","json_url":"https://opc.beizhux.com/glossary/cursor.json"},{"slug":"agent","name":"Agent","definition":"在AI觉醒星球里，「Agent」属于「Agent工作流」方向。聚合Agent、AI编程、Claude Code、Cursor、工作流自动化等内容，帮助你把智能体能力落到真实任务链路。 把智能体当成任务系统，而不是聊天窗口。","topic_slug":"agent-workflow","topic_name":"Agent工作流","topic_title":"Agent工作流：智能体、AI编程与自动化协作","topic_url":"https://opc.beizhux.com/topics/agent-workflow","topic_path":"/topics/agent-workflow","url":"https://opc.beizhux.com/glossary/agent","path":"/glossary/agent","json_url":"https://opc.beizhux.com/glossary/agent.json"},{"slug":"ai-agent","name":"智能体","definition":"在AI觉醒星球里，「智能体」属于「Agent工作流」方向。聚合Agent、AI编程、Claude Code、Cursor、工作流自动化等内容，帮助你把智能体能力落到真实任务链路。 把智能体当成任务系统，而不是聊天窗口。","topic_slug":"agent-workflow","topic_name":"Agent工作流","topic_title":"Agent工作流：智能体、AI编程与自动化协作","topic_url":"https://opc.beizhux.com/topics/agent-workflow","topic_path":"/topics/agent-workflow","url":"https://opc.beizhux.com/glossary/ai-agent","path":"/glossary/ai-agent","json_url":"https://opc.beizhux.com/glossary/ai-agent.json"},{"slug":"workflow","name":"工作流","definition":"在AI觉醒星球里，「工作流」属于「Agent工作流」方向。聚合Agent、AI编程、Claude Code、Cursor、工作流自动化等内容，帮助你把智能体能力落到真实任务链路。 把智能体当成任务系统，而不是聊天窗口。","topic_slug":"agent-workflow","topic_name":"Agent工作流","topic_title":"Agent工作流：智能体、AI编程与自动化协作","topic_url":"https://opc.beizhux.com/topics/agent-workflow","topic_path":"/topics/agent-workflow","url":"https://opc.beizhux.com/glossary/workflow","path":"/glossary/workflow","json_url":"https://opc.beizhux.com/glossary/workflow.json"},{"slug":"claude-code","name":"Claude Code","definition":"在AI觉醒星球里，「Claude Code」属于「Agent工作流」方向。聚合Agent、AI编程、Claude Code、Cursor、工作流自动化等内容，帮助你把智能体能力落到真实任务链路。 把智能体当成任务系统，而不是聊天窗口。","topic_slug":"agent-workflow","topic_name":"Agent工作流","topic_title":"Agent工作流：智能体、AI编程与自动化协作","topic_url":"https://opc.beizhux.com/topics/agent-workflow","topic_path":"/topics/agent-workflow","url":"https://opc.beizhux.com/glossary/claude-code","path":"/glossary/claude-code","json_url":"https://opc.beizhux.com/glossary/claude-code.json"},{"slug":"ai-coding","name":"AI编程","definition":"在AI觉醒星球里，「AI编程」属于「Agent工作流」方向。聚合Agent、AI编程、Claude Code、Cursor、工作流自动化等内容，帮助你把智能体能力落到真实任务链路。 把智能体当成任务系统，而不是聊天窗口。","topic_slug":"agent-workflow","topic_name":"Agent工作流","topic_title":"Agent工作流：智能体、AI编程与自动化协作","topic_url":"https://opc.beizhux.com/topics/agent-workflow","topic_path":"/topics/agent-workflow","url":"https://opc.beizhux.com/glossary/ai-coding","path":"/glossary/ai-coding","json_url":"https://opc.beizhux.com/glossary/ai-coding.json"},{"slug":"side-business","name":"副业","definition":"在AI觉醒星球里，「副业」属于「AI副业」方向。筛选AI副业、AI小生意、项目认知和可收费交付案例，关注普通人可以验证、复制和沉淀的方法。 从真实痛点出发，先做能收费的小验证。","topic_slug":"ai-side-business","topic_name":"AI副业","topic_title":"AI副业：小生意、项目机会与可收费交付","topic_url":"https://opc.beizhux.com/topics/ai-side-business","topic_path":"/topics/ai-side-business","url":"https://opc.beizhux.com/glossary/side-business","path":"/glossary/side-business","json_url":"https://opc.beizhux.com/glossary/side-business.json"}],"preview_hidden_sections":[],"related_items":[{"id":3748,"title":"OpenAI Python SDK 发布 v3.42.1：修复 Responses WebSocket 连接行为与 beta 认证校验","url":"https://opc.beizhux.com/content/3748/v3-42-1","summary":"openai-python 发布补丁版本 3.42.1，包含 3 项改动：保留 Responses WebSocket 连接行为、校验 beta WebSocket 认证配置、新增 SDK 自有的 Responses 策略辅助函数。均为修复与重构，无新功能。","access_level":"member"},{"id":3726,"title":"datasette-llm 0.1a9","url":"https://opc.beizhux.com/content/3726/datasette-llm-0-1a9","summary":"datasette-llm 0.1a9 让底层插件自动读取 LLM 的默认模型，使 Datasette Agent 无需再显式配置默认模型即可开始使用。","access_level":"member"},{"id":3683,"title":"Figma 讲解如何训练专用画布编辑模型","url":"https://opc.beizhux.com/content/3683/figma","summary":"Figma 公开其 agent 专用编辑模型的训练路径：先用 25 万条以上合成样本做 SFT，让早期 Llama 3.3 70B 在编辑任务上接近当时顶级模型，随后转向强化学习，并用确定性校验器与视觉评委共同完成评测。","access_level":"member"}],"usage_policy":{"summarizable":true,"preferred_url":"https://opc.beizhux.com/content/3744/if-in-doubt-delete-the-uv-lock-file","private_fields_excluded":true}}