Python cannot import shadoworflow on Mac OS X 10.8

I am trying to install tensorflow on my mac air (specs: OSX 10.8.4, 4GB RAM). While tensorflow installs in a clean way, like on tensorflow.org, and I can do $ source bin / activate to get the tensorflow prompt, I cannot import the package into python. This is what I get:

    >>> import tensorflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "/usr/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
    from tensorflow.python.client.client_lib import *
  File "/usr/local/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
    from tensorflow.python.client.session import InteractiveSession
  File "/usr/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
    from tensorflow.python import pywrap_tensorflow as tf_session
  File "/usr/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/usr/local/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(/usr/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so, 2): Symbol not found: ___sincos_stret
  Referenced from: /usr/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so
  Expected in: /usr/lib/libSystem.B.dylib
 in /usr/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so

I looked at the common problems section in the tensor stream, and also searched for ImportError above, but still no luck. I wonder if this is a protobuf problem, as pointed out in Error in python after 'import tensorflow': TypeError: __init __ () received an unexpected keyword argument syntax . Thanks in advance.

+4
2

, TensorFlow Mac OS X 10.8. :

Symbol not found: ___sincos_stret

, , Mac OS X 10.8 (Mavericks), ___sincos_stret .

, (i) Mac OS X 10.9 , (ii) (iii) Docker.

+4

. shadoworflow. question .

0

Source: https://habr.com/ru/post/1615353/


All Articles