3

This my environment at present

$ pip show tensorflow
Name: tensorflow
Version: 1.4.0
Summary: TensorFlow helps the tensors flow
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
License: Apache 2.0
Location: /usr/local/lib/python3.6/site-packages
Requires: wheel, tensorflow-tensorboard, enum34, six, numpy, protobuf

$ pip show protobuf
Name: protobuf
Version: 3.5.0
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: [email protected]
Author-email: [email protected]
License: 3-Clause BSD License
Location: /usr/local/lib/python3.6/site-packages
Requires: six, setuptools

$pip show six
Name: six
Version: 1.11.0
Summary: Python 2 and 3 compatibility utilities
Home-page: http://pypi.python.org/pypi/six/
Author: Benjamin Peterson
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.6/site-packages
Requires: 

Traceback (most recent call last):   File "", line 1, in   File "/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/init.py", line 24, in     from tensorflow.python import *   File "/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python/init.py", line 51, in     from tensorflow.python import pywrap_tensorflow   File "/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in     raise ImportError(msg) ImportError: Traceback (most recent call last):   File "/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in     from tensorflow.python.pywrap_tensorflow_internal import *   File "/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in     _pywrap_tensorflow_internal = swig_import_helper()   File "/Users/joson/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 "/Users/joson/tensorflow/lib/python3.6/imp.py", line 242, in load_module     return load_dynamic(name, filename, file)   File "/Users/joson/tensorflow/lib/python3.6/imp.py", line 342, in load_dynamic     return _load(spec) ImportError: dlopen(/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 10): Library not loaded: @rpath/libcublas.8.0.dylib   Referenced from: /Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so   Reason: image not found

9
  • Really, I have no Idea, what you are trying to say, please mention your problem. is it that you have installed tensorflow and its not working on your system? Commented Nov 25, 2017 at 12:25
  • in my mac ,after >>> import tensorflow as tf, Failed to load the native TensorFlow runtime Commented Nov 25, 2017 at 13:01
  • It looks like it's trying to find libcublas.8.0.dylib. Have you installed CUDA? What command are you using to install TensorFlow? Commented Nov 25, 2017 at 13:04
  • tensorflow.org/install/install_mac,the steps of Take the following steps to install TensorFlow with Virtualenv @MatthewScarpino Commented Nov 25, 2017 at 13:08
  • It's odd that the application is looking for CUDA if you're just installing regular TensorFlow. What happens if you just run pip install tensorflow? Commented Nov 25, 2017 at 13:36

1 Answer 1

4

As discussed in the comments, the problem is that the GPU version of TensorFlow for Mac OS X was installed on a Mac without CUDA installed. Uninstalling and reinstalling the CPU version of TensorFlow should fix the problem.

(Note that the GPU version of TensorFlow for Mac OS X is no longer officially supported.)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.