运行github上特定环境的程序时报错:
tensorflow.python.framework.errors_impl.NotFoundError:
libcudart.so.8.0: cannot open shared object file: No such file or directory
原因:程序代码为cuda8.0版本,而系统cuda版本为10.1与之不匹配。
解决办法,使用重装tensorflow-gpu==1.3.0,则系统自动安装与tensorflow适配的cudatoolkit
分别输入代码:
pip uninstall tensorflow
conda install tensorflow-gpu==1.3.0
成功解决!