nameless1314520 2023-05-28 11:43 采纳率: 0%
浏览 94
已结题

不能成功配置sklearn

Collecting scikit-learn
  Using cached scikit-learn-1.2.2.tar.gz (7.3 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [50 lines of output]
      Ignoring numpy: markers 'python_version == "3.10" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environment
      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
      WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0504DBC8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
      Collecting setuptools
        Using cached setuptools-67.8.0-py3-none-any.whl (1.1 MB)
      Collecting wheel
        Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
      Collecting Cython>=0.29.24
        Using cached Cython-0.29.35-py2.py3-none-any.whl (988 kB)
      Collecting oldest-supported-numpy
        Using cached oldest_supported_numpy-2022.11.19-py3-none-any.whl (4.9 kB)
      Collecting scipy>=1.3.2
        Using cached scipy-1.10.1.tar.gz (42.4 MB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Installing backend dependencies: started
        Installing backend dependencies: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error

        Preparing metadata (pyproject.toml) did not run successfully.
        exit code: 1

        [12 lines of output]
        + meson setup --prefix=c:\python\python38-32 C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c\.mesonpy-3pwxxm7h\build --native-file=C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c\.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
        The Meson build system
        Version: 1.1.1
        Source dir: C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c
        Build dir: C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c\.mesonpy-3pwxxm7h\build
        Build type: native build
        Project name: SciPy
        Project version: 1.10.1

        ..\..\meson.build:1:0: ERROR: Compiler cl can not compile programs.

        A full log can be found at C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c\.mesonpy-3pwxxm7h\build\meson-logs\meson-log.txt
        [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed

      Encountered error while generating package metadata.

      See above for output.

      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

受不了,我还特地配置了c的环境变量,还是不能成功配置sklearn

  • 写回答

5条回答 默认 最新

  • 阳光宅男xxb 2023-05-29 10:09
    关注

    这个错误是在安装sklearn时错写了错误。 numpy: markers 'python_version == "3.10" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environmen 这里提示了numpy 当前的版本和python3.10不匹配。
    解决方法是,可以安装较低版本的numpy看看,比如,pip install numpy==1.19.2 或其他版本

    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 5月29日
  • 创建了问题 5月28日

悬赏问题

  • ¥15 Windows Script Host 无法找到脚本文件"C:\ProgramData\Player800\Cotrl.vbs”
  • ¥15 matlab自定义损失函数
  • ¥15 35114 SVAC视频验签的问题
  • ¥15 impedancepy
  • ¥15 求往届大挑得奖作品(ppt…)
  • ¥15 如何在vue.config.js中读取到public文件夹下window.APP_CONFIG.API_BASE_URL的值
  • ¥50 浦育平台scratch图形化编程
  • ¥20 求这个的原理图 只要原理图
  • ¥15 vue2项目中,如何配置环境,可以在打完包之后修改请求的服务器地址
  • ¥20 微信的店铺小程序如何修改背景图