1、用Anaconda配置Windows环境下的tensorflow(CPU版本)

来源:互联网 发布:淘宝1秒拦截软件有哪些 编辑:程序博客网 时间:2024/05/09 14:35

下载Anaconda3地址:https://repo.continuum.io/archive/.winzip/
清华镜像:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
下载版本:Anaconda3-4.2.0-Windows-x86_64.exe

【Windows下安装tensorflow步骤】:http://blog.csdn.net/sb19931201/article/details/53648615//

测试安装成功与否

import tensorflow as tf  hello = tf.constant('Hello,TensorFlow!')  sess = tf.Session()  print(sess.run(hello))      //结果:Hello, TensorFlow!  a = tf.constant(10)  b = tf.constant(32)  print(sess.run(a + b))      //结果:42 

运行,若最终结果与下面两行一致,则恭喜你安装成功!

//TensorFlow.py 运行结果,表示 TensorFlow 已经安装成功。Hello, TensorFlow!  42  

这里写图片描述

注意、下面这种情况经常发生,并不会影响到程序的运行,我们先忽略不管!
这里写图片描述

Demo:https://github.com/kevin28520/My-TensorFlow-tutorials

阅读全文
1 0