2025-05-29 15:08:56 +00:00
|
|
|
onnx Cannot build wheel
|
|
|
|
|
|
|
|
fix command:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/onnx/onnx.git
|
|
|
|
cd onnx
|
|
|
|
git submodule update --init --recursive
|
|
|
|
# prefer lite proto
|
|
|
|
set CMAKE_ARGS=-DONNX_USE_LITE_PROTO=ON
|
|
|
|
pip install -e .
|
2025-05-29 18:15:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone -b rel-1.17.0 https://github.com/onnx/onnx.git
|
|
|
|
cd onnx
|
|
|
|
git submodule update --init --recursive
|
|
|
|
# prefer lite proto
|
|
|
|
set CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=ON"
|
|
|
|
set CMAKE_ARGS=-DONNX_USE_LITE_PROTO=ON
|
|
|
|
pip install -e .
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
set CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=ON"
|
|
|
|
pip install onnx<1.18.0
|
2025-05-29 15:08:56 +00:00
|
|
|
```
|