win8 TensorFlow

来源:互联网 发布:英国 实力 知乎 编辑:程序博客网 时间:2024/06/05 19:47

1.下载Anacoda包(强大的python资源包)

安装时勾选添加进环境变量

之后手动添加./Anaconda3/Scripts到环境变量里去,因为conda pip指令管理python包时需要

2.进入cmd

输入命令

conda create -n tensorflow python=3.6
 
activate tensorflow
pip install tensorflow 

3.验证
>>> import tensorflow as tf>>> hello = tf.constant('Hello, TensorFlow!')>>> sess = tf.Session()>>> sess.run(hello)Hello, TensorFlow!>>> a = tf.constant(10)>>> b = tf.constant(32)>>> sess.run(a+b)42>>>

原创粉丝点击