When I check the tensorRT via sudo apt show tensorrt

I get this that means I have tensorRT however when i try to import tensorrt in python I get “No module named ‘tensorrt’” error.

When I check the tensorRT via sudo apt show tensorrt

I get this that means I have tensorRT however when i try to import tensorrt in python I get “No module named ‘tensorrt’” error.

Hi,
The log shows the C++ TensorRT library.
You will need to install Python TensorRT to import.
$ sudo apt install python3-libnvinfer*
Thanks.