**遇到 Python 依赖错误?试试删除 uv.lock 文件** _If in doubt, delete the uv.lock file_ > Si
原帖
**遇到 Python 依赖错误?试试删除 uv.lock 文件**
_If in doubt, delete the uv.lock file_
> Simon Willison 指出,在使用 Python 3.15 时,若遇到依赖包构建错误(如缺少新版 wheel),可尝试删除项目中的 uv.lock 文件。这是因为该文件可能锁定了尚未支持新 Python 版本的依赖项,删除后重新运行命令通常能解决兼容性问题。
**来源信息**
- **来源**:Simon Willison 博客
- **分类**:ai-products
- **发布时间**:2026-11-02 07:24(北京时间)
- **原文**:[打开原文](https://simonwillison.net/2026/Nov/1/delete-uv-lock-first)