解决ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory

问题:
在ubuntu18.04安装tensorflow-gpu, 运行import tensorflow as tf 时报错:

ImportError: libcublas.so.10.0: cannot open shared object file: No such file

解决办法:
cuda版本和tensorflow版本不对应,卸载tensorflow,安装低版本的tensorflow(以pip3安装为例)

>>> pip3 uninstall protobuf
>>> pip3 uninstall tensorflow-gpu
>>> pip3 install tensorflow-gpu==1.8

你可能感兴趣的:(tensorflow)