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


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’

Do you guys know what going on here?.


TensorRT Version:
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):

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.


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.