解决Could not load dynamic library ‘libcudart.so.10.0’; dlerror: libcudart.so.10.0: cannot open …
系统:centos7+
环境:cuda10.0+cuda7.5.0+tensorflow-gpu1.14.0
报错信息:
Could not load dynamic library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory;LD_LIBRARY_PATH:/usr/local/cuda/lib64:
Could not load dynamic library 'libcublas.so.10.0'; dlerror: libcublas.so.10.0: cannot open shared object file: No such file or directory;LD_LIBRARY_PATH:/usr/local/cuda/lib64:
Could not load dynamic library 'libcufft.so.10.0'; dlerror: libcufft.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib64:
.
.
.
解决方法:conda install cudatoolkit==10.0
环境测试:
In [1]: import tensorflow as tf
In [2]: tf.test.is_gpu_available()
Out[2]: True
参考:https://blog.csdn.net/qq_28193019/article/details/103146116