Edgar H
Edgar H

Reputation: 1518

Installing Tensorflow GPU - Cannot find libcublas.so.9.0 even though its present and in path

I run into the error

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

even though the file exists and the PATH and LD_LIBRARY_PATH are set. I am using tensorflow-gpu 1.9.0

The file exists: File exists

And the path contains this folder:

LD_LIBRARY_PATH

The stack trace

Traceback (most recent call last):
  File "/home/user1/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/user1/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/user1/anaconda3/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/user1/anaconda3/lib/python3.6/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "/home/user1/anaconda3/lib/python3.6/imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

Upvotes: 1

Views: 342

Answers (1)

Edgar H
Edgar H

Reputation: 1518

It turned out to be a driver issue. I went back to Ubuntu 16.04, did a fresh install of Ubuntu and the Nvidia drivers and I was able to install Tensorflow_gpu without a problem.

Upvotes: 1

Related Questions