5

I am trying to import tensorflow using python and anaconda on Mac OSX 10.11.6 (El Capitan). I have followed the instructions on tensorflow.org relating to installation with anaconda as follows:

conda create -n tensorflow pip python=3.6
source activate tensorflow
sudo -H pip3 install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.0-py3-none-any.whl

And then starting python, and typing import tensorflow, produces an error:

ImportError: dlopen(/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 6): Symbol not found: _SecKeyCopyExternalRepresentation

Followed by more similar errors which resulted in a failure to load the native tensorflow runtime.

Any assistance would be much appreciated!

Tomer Shetah
  • 8,413
  • 7
  • 27
  • 35
Penny Hancock
  • 61
  • 1
  • 2

2 Answers2

6

I had the same error message while installing TensorFlow. I was also using OSX 10.11.6. I got past that step by upgrading OSX. I was tipped off that this was necessary because a few lines farther down on the error message that you posted (after the dlopen part), it mentioned that the libraries had been compiled for a later version of OSX (10.12). When I upgraded to OSX 10.13, that error message went away.

If you're getting the same error in your error message, this will probably get you past that part.

Stephen Foster
  • 389
  • 1
  • 8
0

If someone gets here and has, for some reason, to run TensorFlow on OSX 10.11 El Capitan, the latest version supported is tensorflow==1.9.0.

sarusso
  • 654
  • 5
  • 10