簡體   English   中英

詩歌安裝失敗 Scipy (Manjaro Linux, Python 3.10.5)

[英]Poetry fails to install Scipy (Manjaro Linux, Python 3.10.5)

我正在嘗試使用 Poetry 安裝 Scipy,但收到以下錯誤消息:

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)

我有一個類似的依賴錯誤,詩歌無法安裝 scipy。 我的解決方法是在我的pyproject.toml文件中更改 Python 的行:

python = "^3.10"

python = ">=3.10,<3.12"

我不完全確定為什么要修復它,因為它實際上並沒有改變它安裝的 python 的版本,只是它對約束的看法。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM