LoginSignup
0
0

poetryでscipyが入らなかった

Posted at

問題

タイトル通り。以下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"

と書き換えて解決。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0