TensorRT python library is not working

Hello,
I am trying to work with tensorrt python library in my poetry environment already for few days and I cant find a way to solve this issue…
I am using Nvidia Jetson Xavier AGX with Jetpack5.1.1
cuda version 11.4.315
I am using Python3.8 with poetry as the dependancy manager
I build tensorrt-8.5.2.2-cp38-none-linux_aarch64.whl and installed it in this way “poetry add tensorrt-8.5.2.2-cp38-none-linux_aarch64.whl”
I also tried to install it in this way “poetry shell” “pip3 install tensorrt-8.5.2.2-cp38-none-linux_aarch64.whl”
please help me solve this very annoying issue, thanks.

Hi,

We have prebuilt for python3.8 so you don’t need a custom package.
Could you try to install it with the following command in poetry to see if it helps?

$ sudo apt install python3-libnvinfer*

Thanks.

Hi,
I tried the command that you sent and it did not install anything new.

Because I am using poetry for my dependencies manager I installed the TensorRT package as a whl file.

and still when I try to import tensorrt package I get this Error.

Hi,

We recommend installing a Python deb instead of whl.
Could you remove the wheel and install Python TensorRT again?

Thanks.

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