系统Centos 7.0 64位
安装pip
yum update -y && yum install -y python python-devel epel-release.noarch python-pip
yum -y install python-pip
从百度下载
pip install tensorflow-0.5.0-cp27-none-linux_x86_64.whl
第一个demo,test.py
------------------------------
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)
------------------------------