You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImportError: libcudnn.so.8: cannot open shared object file: No such file or directory #1747
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
@Baiyixuan1113 Seems like libcudnn.so.8 is not visible even though it exists. If as you say, it exists in /usr/local/cuda-10.2/lib64, you can do the following in your terminal for a temporary fix:
Activity
samurdhikaru commentedon Apr 7, 2022
@Baiyixuan1113 Seems like
libcudnn.so.8is not visible even though it exists. If as you say, it exists in/usr/local/cuda-10.2/lib64, you can do the following in your terminal for a temporary fix:For a more permanent solution, add the above line to your
~/.bashrc(andsource ~/.bashrcif necessary).nvpohanh commentedon Jul 1, 2022
Closing due to >14 days without activity. Please feel free to reopen if the issue still exists. Thanks
knotgrass commentedon Dec 12, 2022
you can try solution here
nickchomey commentedon Feb 14, 2023
This might help people who stumble across this in the future - I had to install cudnn, in addition to cuda.
https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html
ashmalvayani commentedon Sep 4, 2023
solve this by installing:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
this worked for me. I had to check the cuda version currently installed and download the appropriate PyTorch version from this website:
https://pytorch.org/