查看linux版本
uname -a
查看磁盘大小
准备好python 2.7
查看python版本
import sys
print sys.version
print sys.version_info
print sys.version
print sys.version_info
安装pip
yum -y install python-pip
安装TensorFlow
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.1-cp27-none-linux_x86_64.whl
测试
vi test.py
import tensorflow as tf
se = tf.Session()
a = tf.constant(100)
b = tf.constant(20)
print se.run(a+b)
运行
python hello.py