No module named 'tensorrt'

I have a Jetson Orin development kit and just upgraded to Jetpack 5.1

Now when I attempt to import tensorrt in python, it fails with the error “ModuleNotFoundError: No module named ‘tensorrt’”

image

Previous topic which I am still trying to solve: Trtexec Internal Error (Symbolic relation a.z >= 0 is always false. )

Hi,

Please try the following command to install the python binding for TensorRT.

$ sudo apt install python3-libnvinfer*

We are checking why the python binding is not installed by default with our internal team.
Will share more information with you later.

Thanks.

Worked like a charm, thank you!

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