I can not execute Tensor Flow

0

I want to train my own neural network but I can not execute the example. I execute the following command:

python classify_image.py

And I get the following:

  

Traceback (most recent call last): File "classify_image.py", line   46, in       import tensorflow as tf File "/Users/Yitman/TensorFlow/lib/python2.7/site-packages/tensorflow/init.py",   line 24, in       from tensorflow.python import * File "/Users/Yitman/TensorFlow/lib/python2.7/site-packages/tensorflow/python/init.py",   line 72, in       raise ImportError (msg) ImportError: Traceback (most recent call last): File   "/Users/Yitman/TensorFlow/lib/python2.7/site-packages/tensorflow/python/init.py",   line 61, in       from tensorflow.python import pywrap_tensorflow File "/Users/Yitman/TensorFlow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py",   line 28, in       _pywrap_tensorflow = swig_import_helper () File "/Users/Yitman/TensorFlow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py",   line 24, in swig_import_helper       _mod = imp.load_module ('_ pywrap_tensorflow', fp, pathname, description) ImportError:   dlopen (/Users/Yitman/TensorFlow/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so,   10): Library not loaded: @ rpath / libcudart.8.0.dylib Referenced from:   /Users/Yitman/TensorFlow/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so   Reason: image not found   Failed to load the native TensorFlow runtime.   See link

Basically, I understand that you can not find the file, but it is there. Has anyone executed it successfully and can you indicate the correct steps? I also want to train the neural network with my own images, how do I proceed?

Thank you.

    
asked by Christian Reyes 16.04.2017 в 19:17
source

1 answer

1

Something similar happened to me on mac.

Execute the following.

$ which python

If the output is not / usr / local / bin / python then do the following.

$ brew install python $ brew linkapps python $ which python

You should have the next exit. / usr / local / bin / python

Now install tensorflow $ pip install tensorflow

To see that everything is fine: $ python import tensorflow as tf

I think it should work, I solved it like that.

    
answered by 30.09.2017 в 23:32