tensorrtx icon indicating copy to clipboard operation
tensorrtx copied to clipboard

ImportError: libnvinfer.so.8: cannot open shared object file: No such file or directory

Open twd19990423 opened this issue 2 months ago • 3 comments

Env

  • GPU, 1080ti
  • OS, e.g. Ubuntu18.04
  • Cuda version 11.1
  • TensorRT 8.2.5.1

The reasoning of the C version is normal,However, the python version will report this error。 The same device and TensorRT version are the same。Looking forward to hearing from you。Thanks

Traceback (most recent call last): File "/mnt/workspace/rv2d/acus_workspace/twd_workspace/tensorrtx-master/yolov8/yolov8_seg_trt.py", line 15, in import tensorrt as trt File "/mnt/workspace/rv2d/anaconda3/envs/pytorch/lib/python3.9/site-packages/tensorrt/init.py", line 67, in from .tensorrt import * ImportError: libnvinfer.so.8: cannot open shared object file: No such file or directory

twd19990423 avatar Apr 25 '24 08:04 twd19990423