D
D
Dplll2018-03-10 20:51:51
Python
Dplll, 2018-03-10 20:51:51

Installing TensorFlow?

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

Traceback (most recent call last):
File "/home/alim/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File " /home/alim/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/alim/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/alim/anaconda3/lib/python3.6/imp .py", line 243, in load_module
return load_dynamic(name,filename, file)
File "/home/alim/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
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ggame.py", line 1, in
import tensorflow as tf
File "/home/alim/anaconda3/lib/python3.6/site- packages/tensorflow/__init__.py", line 24, in
from tensorflow.python import *
File "/home/alim/anaconda3/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/home/alim/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/ home/alim/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/alim/anaconda3/lib/python3. 6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/alim/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/alim/anaconda3/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/home/alim/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
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources...
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pan Propan, 2018-03-10
@mgis

https://www.tensorflow.org/install/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question