无法使用M通过pip install安装sklearn

2024-07-01 07:36:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的是python3.7,我想通过pip3 install安装sklearn包。在

我已经安装了诸如numpy和scipy之类的依赖项。在

所以,当我使用sudo pip3 install -U scikit-learn时,出现了错误

Command "/usr/local/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-req-build-d3203b5n/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-7wbr9qu2/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-req-build-d3203b5n/

我不知道出了什么问题,请帮帮我。在


Tags: installpipbuildpip3codeopenprivaterecord
1条回答
网友
1楼 · 发布于 2024-07-01 07:36:43

我遇到了同样的问题,我用

pip install git+https://github.com/scikit-learn/scikit-learn.git

在运行此命令之前,请检查您是否已经安装了numpy和scipy包。在

相关问题 更多 >

    热门问题