問題
タイトル通り。以下Error文。
The current project's Python requirement (>=3.8,<4.0) is not compatible with some of the required packages Python requirement:
- scipy requires Python <3.12,>=3.8, so it will not be satisfied for Python >=3.12,<4.0
Because no versions of scipy match >1.10.1,<2.0.0
and scipy (1.10.1) requires Python <3.12,>=3.8, scipy is forbidden.
So, because cu2se depends on scipy (^1.10.1), version solving failed.
• Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties
For scipy, a possible solution would be to set the `python` property to ">=3.8,<3.12"
pyenvでpythonのversionを、poetryでpackage等を管理している。pyenvでpythonのverを3.8.6にしていたのでErrorとかみ合わない。poetryでもpython = "^3.8"
と設定していた。
解決方法
ここに書いてあった。
pyproject.tomlの中のpythonのverのところで^3.10
とすると>=3.10,<4.0
となるかららしい。^3.8
も似たような感じなのかもしれない。pyproject.tomlのpythonのところを
python = "<3.12,>=3.8"
と書き換えて解決。