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-22.214.171.124-cp38-none-linux_aarch64.whl and installed it in this way “poetry add tensorrt-126.96.36.199-cp38-none-linux_aarch64.whl”
I also tried to install it in this way “poetry shell” “pip3 install tensorrt-188.8.131.52-cp38-none-linux_aarch64.whl”
please help me solve this very annoying issue, thanks.
TensorRT python library is not working
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*
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.
We recommend installing a Python deb instead of whl.
Could you remove the wheel and install Python TensorRT again?