Skip to content
Advertisement

Trying to install onnx using pip and it throwing error: metadata-generation-failed

So i trying to install onnx using pip install.

OS: Windows 10 LTSC Build 17763

(i installed all packages from requirements.txt using pip install -r | onnx entry in req.txt “# onnx>=1.9.0 # ONNX export” but onnx won’t install)

I try to install it using:

  1. pip install onnx
  2. pip3 install
  3. pip install onnx>=1.9.0
  4. pip3 install onnx>=1.9.0

on python versions

  1. 3.7.0
  2. 3.10.4
  3. 3.9.something
  • i try to download onnx : pip download onnx

and every time i get this:

JavaScript

what is “cmake” where i can get it and how i can fix it? + why i need that “cmake” only for this package?

AND what alternative was on downloading/installing packages i have? + what i’m doing wrong.

Advertisement

Answer

Download (and install + add to PATH) CMake from cmake.org/download/ and use fresh venv on python version 3.9.2.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement