I am running ubuntu 14.04 and have installed tensorrt.
When I open up my python terminal and try to import tensorrt, I get the following error:
import tensorrt
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.7/dist-packages/tensorrt/init.py”, line 77, in
from tensorrt import infer, parsers, utils, lite, plugins
File “/usr/local/lib/python2.7/dist-packages/tensorrt/infer/init.py”, line 54, in
from ._infer_enums import *
File “/usr/local/lib/python2.7/dist-packages/tensorrt/infer/_infer_enums.py”, line 54, in
from tensorrt.infer import _nv_infer_bindings as nvinfer
ImportError: libnvinfer.so.4: cannot open shared object file: No such file or directory
I see that libnvinfer.so.4 is present in the tar file which I downloaded from the website.
Note: I also tried to run tensorrt on Ubuntu 16.04 and I get the same libnvinfer error when I am installing it.
I am still facing the same issue and I can see the lib file in Path folder as well.
PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools/node/bin:/tools/google-cloud-sdk/bin:/opt/bin:/opt/TensorRT-7.0.0.11/targets/x86_64-linux-gnu/lib/:/opt/TensorRT-7.0.0.11/targets/x86_64-linux-gnu/bin/
And I can see the file there in the folder.
Can someone please help?