电脑疯子技术论坛|电脑极客社区

 找回密码
 注册

QQ登录

只需一步,快速开始

[linux教程] CentOS7安装tensorflow 0.8

[复制链接]
zhaorong 发表于 2017-3-14 11:54:21 | 显示全部楼层 |阅读模式

1、确认python为2.7.0以上版本

  1. python -V
复制代码


2、安装

  1. pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
复制代码


3、测试hello world

  1. vim tf_hello.py

  2. import tensorflow as tf
  3. sess = tf.Session()
  4. a = tf.constant(100)
  5. b = tf.constant(20)
  6. print sess.run(a+b)
复制代码


4、执行hello world

  1. python tf_hello.py
复制代码

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|VIP|电脑疯子技术论坛 ( Computer madman team )

GMT+8, 2025-3-14 03:54

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表