python 2.7 - Trouble Getting tensorflow to work, the libcudart.so.8.0 is not in the path -


system info: amd cpu ubuntu 16.04 cudnn v5.1 python 2.7

unable tensorflow run correctly when calling: "import tensorflow tf"

error/output:

#

traceback (most recent call last): file "test.py", line 2, in import tensorflow tf file "/usr/local/lib/python2.7/dist-packages/tensorflow/init.py", line 24, in tensorflow.python import * file "/usr/local/lib/python2.7/dist-packages/tensorflow/python/init.py", line 72, in raise importerror(msg) importerror: traceback (most recent call last): file "/usr/local/lib/python2.7/dist-packages/tensorflow/python/init.py", line 61, in tensorflow.python import pywrap_tensorflow file "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() file "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) importerror: libcudart.so.8.0: cannot open shared object file: no such file or directory

failed load native tensorflow runtime.

#

already tried solutions in similar thread: tensorflow: libcudart.so.7.5: cannot open shared object file: no such file or directory

you need find path of libcudart.so , need environment.

to find location of libcudart.so.8.0 .try this

sudo find / -name libcudart.so 

this list actual path in following format

<-directory->/libcudart.so.8.0

copy directory , add following in /etc/profile

export ld_library_path=$ld_library_path:<-directory-> 

then update source

source /etc/profile 

Comments