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:
- pip install onnx
- pip3 install
- pip install onnx>=1.9.0
- pip3 install onnx>=1.9.0
on python versions
- 3.7.0
- 3.10.4
- 3.9.something
- i try to download onnx : pip download onnx
and every time i get this:
JavaScript
x
26
26
1
Collecting onnx
2
Using cached onnx-1.11.0.tar.gz (9.9 MB)
3
Preparing metadata (setup.py) error
4
error: subprocess-exited-with-error
5
6
× python setup.py egg_info did not run successfully.
7
│ exit code: 1
8
╰─> [7 lines of output]
9
fatal: not a git repository (or any of the parent directories): .git
10
Traceback (most recent call last):
11
File "<string>", line 2, in <module>
12
File "<pip-setuptools-caller>", line 34, in <module>
13
File "C:UsersRed007MasterAppDataLocalTemppip-download-coisn9j3onnx_f49974f8ac4344abaca0eecae41c15e4setup.py", line 86, in <module>
14
assert CMAKE, 'Could not find "cmake" executable!'
15
AssertionError: Could not find "cmake" executable!
16
[end of output]
17
18
note: This error originates from a subprocess, and is likely not a problem with pip.
19
error: metadata-generation-failed
20
21
× Encountered error while generating package metadata.
22
╰─> See above for output.
23
24
note: This is an issue with the package mentioned above, not pip.
25
hint: See above for details.
26
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.