First: I needed to activate my virtualenv.
- $ source ~/tensorflow/bin/activate
- (TensorFlow) My-Air:~ me$ python
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Third: Import TensorFlow
- >>> import tensorflow as tf
Fourth: Create hello variable and assign it tf.constant('Hello, TensorFlow!')
- >>> hello = tf.constant('Hello, TensorFlow!')
Fifth: Establish a session variable
- >>> sess = tf.Session()
Sixth: TensorFlow Hello World equivalent!
- >>> print(sess.run(hello))
And validation...done.