我正在尝试使用“诗”安装“西西”,但我得到了以下错误消息:
Using version ^1.9.0 for scipy
The current project's Python requirement (>=3.10,<4.0) is not compatible with some of the required packages Python requirement:
- scipy requires Python >=3.8,<3.12, so it will not be satisfied for Python >=3.12,<4.0
Because scipy (1.9.0) requires Python >=3.8,<3.12
and no versions of scipy match >1.9.0,<2.0.0, scipy is forbidden.
So, because assistant depends on scipy (^1.9.0), version solving failed.
at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/puzzle/solver.py:241 in _solve
237│ packages = result.packages
238│ except OverrideNeeded as e:
239│ return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
240│ except SolveFailure as e:
→ 241│ raise SolverProblemError(e)发布于 2022-09-04 16:12:21
我也有过一个类似的依赖错误,诗歌没有安装“参与”。对我来说,修复方法是将pyproject.toml文件中的Python行更改为:
python = "^3.10"至
python = ">=3.10,<3.12"我不太清楚为什么要修改它,因为它并没有真正改变它安装的python版本,只是它是如何看待约束的。
https://stackoverflow.com/questions/73347870
复制相似问题