Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0

CUDA Toolkit 11.0 Download | NVIDIA Developer

wget http://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda_11.0.2_450.51.05_linux.run
sudo sh cuda_11.0.2_450.51.05_linux.run

Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0_第1张图片

接下来:

First, find out where the "libcudart.so.11.0" is: 

locate libcudart.so.11.0

Second, add the path to environment file:

sudo vim /etc/profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.0/targets/x86_64-linux/lib
source /etc/profile

运行成功后可以看到:

2022-03-12 07:38:34.386165: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0

参考:

https://github.com/tensorflow/tensorflow/issues/45930icon-default.png?t=M276https://github.com/tensorflow/tensorflow/issues/45930

你可能感兴趣的:(深度学习,tensorflow,pytorch)