首页 > 其他 > 详细

CentOS7 安装 tensorflow 0.8

时间:2016-07-04 15:42:23      阅读:310      评论:0      收藏:0      [点我收藏+]

1、确认python为2.7.0以上版本

python -V


2、安装

pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl


3、测试hello world

vim tf_hello.py


import tensorflow as tf

a = tf.constant(100)

b = tf.constant(20)

print sess.run(a+b)


4、执行hello world

python tf_hello.py

本文出自 “7727197” 博客,请务必保留此出处http://7737197.blog.51cto.com/7727197/1795610

CentOS7 安装 tensorflow 0.8

原文:http://7737197.blog.51cto.com/7727197/1795610

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!