Could not load dynamic library "libcudart.so.11.0"
sudo find / -name 'libcudart.so.11.0'
Output in my system.This result shows where the “libcudart.so.11.0” is in my system:
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudart.so.11.0
Then add the path to enviroment file.
sudo vim /etc/profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.1/targets/x86_64-linux/lib
Attention: The path need del the “libcudart.so.11.0”
Then
source /etc/profile
In the end, you can test by:
python
import tensorflow
No warnning in output is fine.
if you not find the “libcudart.so.11.0” is in my system.
You should check if your cuda is installed successfully。
if no, please install it.
if yes, please check your cudatoolkit.