【发布时间】:2021-02-13 19:08:04
【问题描述】:
我正在尝试使用 pip 从终端安装 Scikit-learn,但我不断收到相同的错误。我尝试了所有可以在网上找到的建议,但似乎没有任何效果。我已经安装了 numpy 和 scipy。我似乎找不到问题所在。
Traceback (most recent call last):
File "setup.py", line 477, in configuration
raise NotFoundError(msg)
numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files (x86)\python39-32\python.exe' 'C:\Users\Hp\AppData\Roaming\Python\Python39\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Hp\AppData\Local\Temp\tmppindbl3r' Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files (x86)\python39-32\python.exe' 'C:\Users\Hp\AppData\Roaming\Python\Python39\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Hp\AppData\Local\Temp\pip-build-env-j7apkk1n\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation == '"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation != '"'"'CPython'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'scipy>=0.19.1' Check the logs for full command output.
【问题讨论】:
-
看起来你需要一个线性代数库。试试这个:icl.cs.utk.edu/lapack-for-windows/lapack
-
我认为你应该检查一下post
标签: python python-3.x scikit-learn pip