安装 onnx 时遇到此问题

问题描述 投票:0回答:1
C:\Users\orego>pip install onnx
Collecting onnx
  Using cached onnx-1.15.0.tar.gz (12.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in c:\users\orego\appdata\local\programs\python\python312\lib\site-packages (from onnx) (1.26.3)
Requirement already satisfied: protobuf>=3.20.2 in c:\users\orego\appdata\local\programs\python\python312\lib\site-packages (from onnx) (4.25.2)
Building wheels for collected packages: onnx
  Building wheel for onnx (pyproject.toml) ... \ error

此后我收到此错误

  FileTracker : error FTK1011: ­Ґ г¤ «®бм ᮧ¤ вм ­®ўл© д ©« ¦га­ «  ®вб«Ґ¦Ёў ­Ёп д ©«®ў: C:\Users\orego\AppData\Local\Temp\pip-install-eo5bdmfv\onnx_13057d7d074a4057aad2ebf5c447bf26\.setuptools-cmake-build\_deps\protobuf-build\third_party\abseil-cpp\absl\random\random_internal_randen_hwaes_impl.dir\Release\random_i.9F80CB9E.tlog\Lib-link.write.1.tlog. ‘Ёб⥬Ґ ­Ґ г¤ Ґвбп ­ ©вЁ гЄ § ­­л© Їгвм. [C:\Users\orego\AppData\Local\Temp\pip-install-eo5bdmfv\onnx_13057d7d074a4057aad2ebf5c447bf26\.setuptools-cmake-build\_deps\protobuf-build\third_party\abseil-cpp\absl\random\random_internal_randen_hwaes_impl.vcxproj]

注意:此错误源自子进程,并且可能不是 pip 的问题。 错误:onnx 构建轮子失败 构建onnx失败 错误:无法为 onnx 构建轮子,这是安装基于 pyproject.toml 的项目所必需的

我安装了cmake并将其添加到路径中,安装了Visual Studio 我正在运行 Windows 11 和 python 3.12 我需要安装onnx

cmake onnx
1个回答
0
投票

我遇到了同样的问题,我希望我也能找到对此问题的任何支持,如果您已经想到,请告诉我。

© www.soinside.com 2019 - 2024. All rights reserved.