TensorRT Can't impot even if it is installed already

When I check the tensorRT via sudo apt show tensorrt
image

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

image

Hi,

The log shows the C++ TensorRT library.
You will need to install Python TensorRT to import.

$ sudo apt install python3-libnvinfer*

Thanks.

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