I downloaded the latest version of onnxruntime from Jetson Zoo but I’m getting this when installing:
$ wget https://nvidia.box.com/shared/static/iizg3ggrtdkqawkmebbfixo7sce6j365.whl -O onnxruntime_gpu-1.16.0-cp38-cp38m-linux_aarch64.whl
$ pip install onnxruntime_gpu-1.16.0-cp38-cp38m-linux_aarch64.whl
ERROR: onnxruntime_gpu-1.16.0-cp38-cp38m-linux_aarch64.whl is not a supported wheel on this platform.
I tried both 1.15.1 and 1.16.0. Here’s the Jetson information:
$ pip3 install wheels/onnxruntime_gpu-1.16.0-cp310-cp310-linux_aarch64.whl
ERROR: onnxruntime_gpu-1.16.0-cp310-cp310-linux_aarch64.whl is not a supported wheel on this platform.
Weirdly enough, it seems to work in Python 3.10:
(py38-venv) ... $ pip install wheels/onnxruntime_gpu-1.16.0-cp38-cp38m-linux_aarch64.whl
ERROR: onnxruntime_gpu-1.16.0-cp38-cp38m-linux_aarch64.whl is not a supported wheel on this platform.
(py310-venv) ... $ pip install wheels/onnxruntime_gpu-1.16.0-cp310-cp310-linux_aarch64.whl
Processing ./wheels/onnxruntime_gpu-1.16.0-cp310-cp310-linux_aarch64.whl
Requirement already satisfied: protobuf in ./py310-venv/lib/python3.10/site-packages (from onnxruntime-gpu==1.16.0) (4.25.1)
Requirement already satisfied: flatbuffers in ./py310-venv/lib/python3.10/site-packages (from onnxruntime-gpu==1.16.0) (23.5.26)
Requirement already satisfied: packaging in ./py310-venv/lib/python3.10/site-packages (from onnxruntime-gpu==1.16.0) (23.2)
Requirement already satisfied: coloredlogs in ./py310-venv/lib/python3.10/site-packages (from onnxruntime-gpu==1.16.0) (15.0.1)
Requirement already satisfied: sympy in ./py310-venv/lib/python3.10/site-packages (from onnxruntime-gpu==1.16.0) (1.12)
Requirement already satisfied: numpy>=1.25.2 in ./py310-venv/lib/python3.10/site-packages (from onnxruntime-gpu==1.16.0) (1.26.3)
Requirement already satisfied: humanfriendly>=9.1 in ./py310-venv/lib/python3.10/site-packages (from coloredlogs->onnxruntime-gpu==1.16.0) (10.0)
Requirement already satisfied: mpmath>=0.19 in ./py310-venv/lib/python3.10/site-packages (from sympy->onnxruntime-gpu==1.16.0) (1.3.0)
Installing collected packages: onnxruntime-gpu
Successfully installed onnxruntime-gpu-1.16.0
[notice] A new release of pip is available: 23.0.1 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
(py310-venv) ... $ python3
Python 3.10.13 (main, Aug 25 2023, 13:20:03) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import onnxruntime
>>>
Hi @aurelien.montmejat, that’s because you are running Python 3.10 in that virtualenv. My guess is that outside of virtualenv, your pip3 is for Python 3.8 (you can check this with pip3 --version). So try installing:
I also tried to install onnxruntime_gpu-1.16.0-cp38-cp38m-linux_aarch64.whl on jetson orin nano and got the same error.
… $ pip3 install onnxruntime_gpu-1.16.0-cp38-cp38m-linux_aarch64.whl
Defaulting to user installation because normal site-packages is not writeable
ERROR: onnxruntime_gpu-1.16.0-cp38-cp38m-linux_aarch64.whl is not a supported wheel on this platform.
pip3 version is as follows:
… $ pip3 --version
pip 23.3.2 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)
Aha, thanks @aurelien.montmejat - it appears that with Python 3.8 and newer, the m is dropped from the filename. I’ve updated the tutorial to make this clearer 👍