唐宇迪深度学习入门视频课程(下篇)
安装成功后,每次使用 TensorFlow 的时候需要激活 conda 环境
conda 环境激活后,你可以测试是否成功,在终端进入 python,输入下面代码,没有提示错误,说明安装 TensorFlow 成功:
$ python
...'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 >
> import tensorflow as tf > hello = tf.constant(