Can't install "onnxsim"

Hello. I have installed Tensorrt. While converting my .pt file to .engine with ultralytics, I am facing a problem like “requirements: Ultralytics requirement [‘onnxsim>=0.4.17’] not found, attempting AutoUpdate…”, but it seems not optimized because of this missing.“pip install onnxsim … error.
error: subprocess-exited-with-error
…” i keep getting an error like this .How can i fix it?


Jetson Orin Nano
Cuda:11.4
Python:3.8
L4T:35.3.1

Hi,

Have you upgraded the pip version to the latest?
We can install onnxsim after installing cmake 3.22.

$ pip3 install onnxsim --user
...
Building wheels for collected packages: onnxsim
  Building wheel for onnxsim (setup.py) ... done
  Created wheel for onnxsim: filename=onnxsim-0.4.33-cp38-cp38-linux_aarch64.whl size=1928324 sha256=632fd6e1e4dabc286a672e6a3a51450c7d4ea839e9c1484d6f1aa7e518377d40
  Stored in directory: /home/nvidia/.cache/pip/wheels/00/da/ad/d1da7c211aeb0b3c3f50269b5cc1f2cfcccea80dcf7befde4a
Successfully built onnxsim
Installing collected packages: onnxsim
Successfully installed onnxsim-0.4.33

Thanks.

2 Likes

Thank you very much.It worked for me.Have a nice day.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.