Skip to content

ImportError: libcudnn.so.8: cannot open shared object file: No such file or directory #1747

@mortal-Zero

Description

@mortal-Zero

Description

Environment

TensorRT Version: 7.2.1.6
NVIDIA GPU: RTX2080
NVIDIA Driver Version: NVIDIA-Linux-x86_64-470.94.run
CUDA Version: 10.2
CUDNN Version: 8.0.4/8.0.3/7.6.5
Operating System: Ubuntu18.04
Python Version (if applicable): 3.7
PyTorch Version (if applicable): 1.8.1
Baremetal or Container (if so, version):

Relevant Files

Steps To Reproduce

I want to build a tensorrt env, after I run pip install tensorrt-7.2.1.6-cp37-none-linux_x86_64.whl, import tensorrt in python will report the following errorImportError: libcudnn.so.8: cannot open shared object file: No such file or directory
But my cuda env is fine, I can run cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 to get my cudnn version, and libcudnn.so.8 is in /usr/local/cuda-10.2/lib64

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedIssue has been triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions