Installing TensorFlow
1. Pip Installation
sudo apt-get install python-pip python-dev
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl
sudo pip install –upgrade $TF_BINARY_URL
2. Virtual Installation
Step 1
sudo apt-get install python-pip python-dev python-virtualenv
Step 2
virtualenv –system-site-packages ~/tensorflow
Step 3
source ~/tensorflow/bin/activate
(tensorflow)$ pip install –upgrade https://storage.googleapis.com/tensorflow/linux/ cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
Step 4(python)
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))
https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#download-and-setup
sudo apt-get install python-pip python-dev
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl
sudo pip install –upgrade $TF_BINARY_URL
2. Virtual Installation
Step 1
sudo apt-get install python-pip python-dev python-virtualenv
Step 2
virtualenv –system-site-packages ~/tensorflow
Step 3
source ~/tensorflow/bin/activate
(tensorflow)$ pip install –upgrade https://storage.googleapis.com/tensorflow/linux/ cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
Step 4(python)
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))
https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#download-and-setup