exclude-newer 导致 uv 无法从阿里云 PyPI 镜像解析依赖
今天重新安装 Hermes 遇到提示这样的,最终失败了
warning: certifi-2026.5.20.tar.gz is missing an upload date, but user provided: 2026-07-21T11:37:03.2538306Z
warning: certifi-2026.5.20-py3-none-any.whl is missing an upload date, but user provided: 2026-07-21T11:37:03.2538306Z
× No solution found when resolving dependencies for split (markers: python_full_version == '3.13.*'):
╰─▶ Because certifi==2026.5.20 has no publish time and your project depends on certifi==2026.5.20, we can conclude that your project's requirements are unsatisfiable.
And because your project requires hermes-agent[acp], we can conclude that your project's requirements are unsatisfiable.我用的是 阿里云 pypi 镜像代理,上去检查了包是存在的。拿错误信息搜索,得到和 exclude-newer 有关
最终发现是 exclude-newer 导致的。由于阿里云 PyPI 镜像没有提供包的 upload time,uv 无法判断该包是否满足 exclude-newer 的限制,因此认为依赖不可满足。最终在 uv.toml 中添加 exclude-newer = false,为阿里云源关闭该检查后即可正常安装。