最近刚装上ubuntu 16.04,想玩一下tensorflow。系统自带python 2.7版本。
安装:
安装tensorflow的最简单方法(Ubuntu 16.04)
http://blog.csdn.net/shenquanyue/article/details/57075075
运行 TensorFlow
打开一个 python 终端:
$ python
>>> 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)
42
>>>
查看tf版本及路径:
import tensorflow as tf
tf.__version__
__看着是一个下划线,实际上是两个下划线,中间有空格
tf.__path__
ubuntu16.04的Anaconda下的tensorflow安装py3.5
http://www.cnblogs.com/MnsterLu/p/5846702.html
http://blog.csdn.net/zhdgk19871218/article/details/46502637
安装与卸载 Anaconda3 in ubuntu :
http://wuguangbin1230.blog.163.com/blog/static/6152983520168121105490/