安装 spflow 时出现一些错误

问题描述 投票:0回答:1
Collecting spflow
  Using cached spflow-0.0.41-py3-none-any.whl (244 kB)
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from spflow) (1.25.2)
Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from spflow) (1.11.4)
Collecting sklearn (from spflow)
  Using cached sklearn-0.0.post12.tar.gz (2.6 kB)
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

我在安装 spflow (pip install spflow) 时收到此错误。 我已经安装了 scikit-learn (不是 sklearn)。

python pip
1个回答
0
投票

PyPi 上发布的

spflow
包错误地将
sklearn
作为要求,这是 已弃用。幸运的是,这个问题已经在 github 上修复了,所以你可以尝试从那里安装:

pip install https://github.com/SPFlow/SPFlow/archive/refs/heads/master.zip
© www.soinside.com 2019 - 2024. All rights reserved.