Scikit-learn 安装 - 准备元数据 (pyproject.toml) ... 错误
Posted
技术标签:
【中文标题】Scikit-learn 安装 - 准备元数据 (pyproject.toml) ... 错误【英文标题】:Scikit-learn installation - Preparing metadata (pyproject.toml) ... error 【发布时间】: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,我可以做些什么来解决这个问题?
【问题讨论】:
【参考方案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
【讨论】:
以上是关于Scikit-learn 安装 - 准备元数据 (pyproject.toml) ... 错误的主要内容,如果未能解决你的问题,请参考以下文章
使用 Pandas 为 Scikit-Learn 准备 CSV 文件数据?