I finally installed Tensorrt but when I import I got : ModuleNotFoundError: No module named 'tensorrt' ,

Description

Hi, I finally installed Tensorrt on my ubuntu 20.04 as shown here

but I got this error when I import tensorrt

import tensorrt as trt
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘tensorrt’
image

Do you guys know what going on here?.
Thanks

Environment

TensorRT Version: 8.0.0.3-1+cuda11.3
GPU Type: Tesla M40
Nvidia Driver Version: 510.47.03
CUDA Version: 11.1
CUDNN Version: 8.3.2
Operating System + Version: ubuntu 20.04
Python Version (if applicable): 3.7
TensorFlow Version (if applicable): 2.6
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

Hi,
Please refer to the installation steps from the below link if in case you are missing on anything

Also, we suggest you to use TRT NGC containers to avoid any system dependency related issues.

Thanks!

1 Like

Hi, I follow exactly the instruction of the nvidia website mentioned.
I will try to use the TRT NGC you recommended, I’ll let you know if I am able to sovle this.