使用tensorflow遇见的坑1
坑1描述:
安装了tensorflow-gpu版本以后,在pycharm中用样例代码测试tensorflow是否安装成功时。出现了如下错误。直接的错误是:ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/home/wanglei/tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/wanglei/tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/wanglei/tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/home/wanglei/te