|
大家好! 我这里列出一些“pip install -r requirements.txt 过程中遇到的问题”。
× Getting requirements to build wheel did not run successfully. |
Answered by
666ghj
Jul 20, 2026
Replies: 2 comments 1 reply
|
问题root cause和解决方案是: |
1 reply
这里的根因是 Python 3.14 与项目当前锁定的 uv venv --python 3.11
uv pip install -r requirements.txt也可使用 Conda 创建 Python 3.11 环境。不要只在现有 Python 3.14 环境中单独升级 Pillow,否则可能破坏项目当前依赖组合。问题原因和当前建议均已明确,本讨论关闭。 |
0 replies
Answer selected by
666ghj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这里的根因是 Python 3.14 与项目当前锁定的
Pillow==9.5.0不兼容。旧回复推荐 Python 3.9,但当前 README 的 Conda/uv 示例以及 Docker 镜像均使用 Python 3.11,因此现在建议使用全新的 Python 3.11 虚拟环境重新安装:也可使用 Conda 创建 Python 3.11 环境。不要只在现有 Python 3.14 环境中单独升级 Pillow,否则可能破坏项目当前依赖组合。问题原因和当前建议均已明确,本讨论关闭。