Posted at

anaconda + python3.5環境でtensorflowをinstall

More than 3 years have passed since last update.

https://www.tensorflow.org/versions/r0.7/get_started/os_setup.html#test-the-tensorflow-installation


install

cd ~/anaconda/bin

sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp35-none-any.whl


check


import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

>>> Hello, TensorFlow!
a = tf.constant(10)
b = tf.constant(32)

print(sess.run(a + b))
>>> 42