【问题标题】:Scikit-learn installation - Preparing metadata (pyproject.toml) ... errorScikit-learn 安装 - 准备元数据 (pyproject.toml) ... 错误
【发布时间】:2022-01-08 09:27:36
【问题描述】:

我正在运行 pip3 install -U scikit-learn 来安装 Scikit-learn,但是它返回错误:

Preparing metadata (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/ks/4ncxyk05129fd_qqs3s5y6v00000gn/T/tmpjur9qur6
       cwd: /private/var/folders/ks/4ncxyk05129fd_qqs3s5y6v00000gn/T/pip-install-a7o70faj/scikit-learn_2ee6feb334cf42fcae6b0bc63f18e9fb
  Complete output (143 lines):
  Partial import of sklearn during the build process.
  C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g

为了成功安装 Scikit-learn,我可以做些什么来解决这个问题?

【问题讨论】:

    标签: python python-3.x scikit-learn pip


    【解决方案1】:

    它对我有用。 您可以在此处查看更多信息。 https://scikit-learn.org/stable/developers/advanced_installation.html#install-bleeding-edge

        pip install --pre --extra-index https://pypi.anaconda.org/scipy-wheels- 
        nightly/simple scikit-learn
    

    【讨论】:

      猜你喜欢
      • 2014-06-27
      • 2015-04-07
      • 2015-08-24
      • 2022-06-14
      • 2022-07-16
      • 2017-05-26
      • 2016-08-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多