深度学习---在Ubuntu 16.0.4上安装TensorFlow

我的环境是Ubuntu 16.0.4,python的版本为3.5.2。

参考的文献如下:https://www.tensorflow.org/install/pip

1)下载pip安装包:https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.12.0-cp35-cp35m-linux_x86_64.whl

2)使用命令安装:pip3 install tensorflow-1.12.0-cp35-cp35m-linux_x86_64.whl

3)   验证安装结果:

import tensorflow as tf
hello = tf.constant("Hello, TensorFlow!")
sess = tf.Session()
print(sess.run(hello))

如果你看到了Hello,TensorFlow!,恭喜你,现在TensorFlow看起来已经安装完成。

猜你喜欢

转载自blog.csdn.net/putiancaijunyu/article/details/89853868