Hi, if you have trouble to use Google’s TensorFlow Python API with MAC OS X:
- Uninstall all previous TensorFlow and ProtoBuffer installations:
- pip uninstall tensorflow
- pip uninstall protobuf
- brew uninstall protobuf
- Reinstall TensorFlow (Update URL to latest master):
- export TF_BINARY_URL= https://storage. googleapis.com /tensorflow/mac/cpu/tensorflow-0.10.0rc0-py2-none-any.whl
- pip install –upgrade $TF_BINARY_URL
- Test TensorFlow (Python script):
import tensorflow as tf
hello = tf.constant(‘Hello, TensorFlow!’)
sess = tf.Session()
print(sess.run(hello))
a = tf.constant(10)
b = tf.constant(32)
print(sess.run(a + b))