tensorflow入门学习笔记 1. 环境安装及测试

1.安装python 3.6.5   具体安装请参考此博客,把这个博客上演示安装的尽量都安装

     https://blog.csdn.net/u011321546/article/details/79499598


2. 安装 tensorflow    

在命令页面,C:\Python36\Scripts>pip install tensorflow



如果下载较慢,可以复制 Downloading后面的下载链接到浏览器下载,放到scripts目录下,pip install 安装包名称 



会把缺的库都安装,如果出现下图的黄色,建议将scripts路径添加到path环境变量



3.测试一下

在 pycharm 中输入

import tensorflow as tf

a = tf.constant(10)
b = tf.constant(90)
result = a + b
sess = tf.Session()
print(sess.run(a + b))
结果输出:100


猜你喜欢

转载自blog.csdn.net/u011321546/article/details/79981312
今日推荐