【问题标题】:Can't install scikit-learn using pip无法使用 pip 安装 scikit-learn
【发布时间】: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.

【问题讨论】:

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


【解决方案1】:

尝试执行这个: py -m pip uninstall numpy scipy sklearn

然后执行这个: py -m pip install numpy scipy sklearn

【讨论】:

    猜你喜欢
    • 2017-03-08
    • 2022-01-17
    • 2012-12-31
    • 2020-09-11
    • 2014-04-30
    • 2021-01-17
    • 2018-12-21
    • 1970-01-01
    • 2012-05-03
    相关资源
    最近更新 更多