简体   繁体   English

Scikit-learn 安装 - 准备元数据 (pyproject.toml)... 错误

[英]Scikit-learn installation - Preparing metadata (pyproject.toml) ... error

I am running pip3 install -U scikit-learn to install Scikit-learn however it returns an error:我正在运行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

What can I do to fix this in order to sucessfully install Scikit-learn?为了成功安装 Scikit-learn,我可以做些什么来解决这个问题?

it worked for me.它对我有用。 you can see for more information here.您可以在此处查看更多信息。 https://scikit-learn.org/stable/developers/advanced_installation.html#install-bleeding-edge 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装 PyQt6 时准备元数据 (pyproject.toml) 时出错 - Error Preparing metadata (pyproject.toml) installing PyQt6 使用 pip 安装 pytq5 时出错:准备元数据 (pyproject.toml) 未成功运行 - Error while installing pytq5 with pip: Preparing metadata (pyproject.toml) did not run successfully 在 VS 代码上安装 numpy 时出现“正在准备元数据 (pyproject.toml)...错误” - 'Preparing metadata (pyproject.toml) ... error' when installing numpy on VS code 错误:无法为 scikit-learn 构建轮子,这是安装基于 pyproject.toml 的项目所必需的 - ERROR: Could not build wheels for scikit-learn, which is required to install pyproject.toml-based projects 安装错误streamlit: Building wheel for pyarrow (pyproject.toml)...错误 - Installation error streamlit: Building wheel for pyarrow (pyproject.toml) ... error Windows 10,数据表安装问题“准备元数据 (pyproject.toml) 未成功运行。” - Windows 10, Datatable install issue 'Preparing metadata (pyproject.toml) did not run successfully.' 尝试在 Heroku 问题上部署 API 准备元数据 (pyproject.toml) 未成功运行 - Trying to deploy API on Heroku issue Preparing metadata (pyproject.toml) did not run successfully 'tox' 和 'pyproject.toml' - 'tox' and 'pyproject.toml' Pyproject.toml 的强盗问题 - Bandit Issue with Pyproject.toml 在 pyproject.toml 中连接 2 个数组 - Concatenate 2 arrays in pyproject.toml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM