Linux distro and version : ubuntu 18.04
GPU type : NVIDIA GTX 1060
nvidia driver version : 415.27
CUDA version : 10.1
CUDNN version : 9.1
Python version [if using python] : 3.6.2
Tensorflow version : 1.13
TensorRT version : 5.0
If Jetson, OS, hw versions : n/a
I’ve followed the instruction as to install tensorRT, everything went good, however, I couldn’t import tensorrt module in python.
After, installation i checked if python binding shows up or no.
(myenv) jugs@jugs:~$ dpkg -l | grep TensorRT
ii graphsurgeon-tf 5.0.2-1+cuda10.0 amd64 GraphSurgeon for TensorRT package
ii libnvinfer-dev 5.0.2-1+cuda10.0 amd64 TensorRT development libraries and headers
ii libnvinfer-samples 5.0.2-1+cuda10.0 all TensorRT samples and documentation
ii libnvinfer5 5.0.2-1+cuda10.0 amd64 TensorRT runtime libraries
ii python-libnvinfer 5.0.2-1+cuda10.0 amd64 Python bindings for TensorRT
ii python-libnvinfer-dev 5.0.2-1+cuda10.0 amd64 Python development package for TensorRT
ii python3-libnvinfer 5.0.2-1+cuda10.0 amd64 Python 3 bindings for TensorRT
ii python3-libnvinfer-dev 5.0.2-1+cuda10.0 amd64 Python 3 development package for TensorRT
ii tensorrt 5.0.2.6-1+cuda10.0 amd64 Meta package of TensorRT
ii uff-converter-tf 5.0.2-1+cuda10.0 amd64 UFF converter for TensorRT package
(myenv) jugs@jugs:~$
Regardless, everything is available, but I still couldn’t import the python module.
I have a tensorflow version 1.13, and python 3.x in anaconda environment,
Python 3.6.2 |Anaconda, Inc.| (default, Oct 5 2017, 07:59:26)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> print(tf.__version__)
1.13.1
>>> import tensorrt as trt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorrt'
>>>
And, my NVIDIA driver and cuda driver version is as shown below,
(myenv) jugs@jugs:~$ nvidia-smi
Fri Jun 14 12:24:44 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.27 Driver Version: 415.27 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+