python-3.x - 安装 scikit-learn 时卡在 "Installing build dependencies ..."

标签 python-3.x scikit-learn pip apple-m1

我陷入困境

  Installing build dependencies ... \

每当我尝试安装 scikit-learn 时,我都会使用 M1 Macbook Air。

这是图片: here is the image

最佳答案

我对此的唯一解决方法是安装 Anaconda,因为我认为 Scikit Learn 模块不支持 M1 rn。

我检查了 scikit-learn 文档并发现了这个:

最近推出的 macos/arm64 平台(有时也称为 macos/aarch64)需要开源社区升级构建配置和自动化才能正确支持它。

在撰写本文时(2021 年 1 月),在此硬件上安装 scikit-learn 的唯一方法是从 conda-forge 发行版安装 scikit-learn 及其依赖项,例如使用 miniforge 安装程序:

https://github.com/conda-forge/miniforge

以下问题跟踪了使用 pip 从 PyPI 安装 scikit-learn 的进展:

https://github.com/scikit-learn/scikit-learn/issues/19137

关于python-3.x - 安装 scikit-learn 时卡在 "Installing build dependencies ...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67758051/

相关文章:

python - 函数 'drawMarker' 中的错误 : (-215:Assertion failed) id < bytesList. 行

python - 在 Raspberry Pi 上使用 Python 3,如何调用 MPlayer 并传递 URL

python-3.x - Keras 中的值错误 : How could I get the model fitted?

python - 使用 python onnxruntime 进行预测时出错

python - 如何使用与其他两列匹配的Python填充数据集中的空值?

python - 如何在没有 pip 的情况下将来自 github 的库包含在 python 项目中?

python - IntelliJ conda 集成

python - 我的代码有什么问题?我是Python 3.3的新手

python - 从直方图制作概率分布函数 (PDF)

python - Mac 上的 pip install 遇到版本错误