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

微信扫一扫 分享朋友圈

已有 1978 人浏览分享

CentOS7安装tensorflow 0.8

[复制链接]
1978 0

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
复制代码


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

本版积分规则

1

关注

0

粉丝

9021

主题
精彩推荐
热门资讯
网友晒图
图文推荐

Powered by Pcgho! X3.4

© 2008-2022 Pcgho Inc.