歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> CentOS7安裝tensorflow 0.8

CentOS7安裝tensorflow 0.8

日期:2017/3/6 9:12:37   编辑:學習Linux

CentOS7安裝tensorflow 0.8


CentOS7安裝tensorflow 0.8


1、確認python為2.7.0以上版本

python -V

2、安裝

pip installhttps://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

sess = tf.Session()

a = tf.constant(100)

b = tf.constant(20)

print sess.run(a+b)

4、執行hello world

python tf_hello.py

http://xxxxxx/Linuxjc/1156081.html TechArticle

Copyright © Linux教程網 All Rights Reserved