一、安装
第一步:先安装anaconda3
第二步:pip install --upgrade --ignore-installed tensorflow
或者:pip install tensorflow
二、测试
>>> 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))
三、效果
备注:谢谢:http://www.cnblogs.com/zlslch/p/6964944.html