Deepstream 6.0 - No module name tensorrt for python3.6

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU) GPU
**• DeepStream Version 6.0
• TensorRT Version 8.0
**• ubuntu18.04 - cuda 11.3
Hi @mchi . Thank for your quick reply.
I am using deepstream 6.0 Triton

docker pull nvcr.io/nvidia/deepstream:6.0-triton

After pull this docker images. To install python for my container. i did as follow:

cd /opt/nvidia/deepstream/deepstream
bash docker_python_setup.sh   (i choose python3.6/3.6m)

To check tensorrt installation:

Python 3.6.15 (default, Sep 10 2021, 00:26:58) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorrt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorrt'

Both python3.6/3.6m do not support tensorrt.

Hi @Robert_Hoang ,
By default, python TensorRT is not installed.
DeepStream python is python binding which wraps the C++ components.

1 Like

Thanks, I solved. We can use tensorrt .whl file to install tensorrt for python3.6

1 Like

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