加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

【Tensorflow】Windows下基于Anaconda的Tensorflow环境配置

发布时间:2020-12-17 01:23:56 所属栏目:Python 来源:网络整理
导读:1. Anaconda下载安装:https://www.continuum.io/downloads 版本为: Anaconda3,for windows,64bit(tensorflow在windows下只支持python 3.5以上、amd64) 2.? 一定要是python3.5.2,py3.5.1与py3.6安装会报出找不到tensorflow资源的错误 激活tensorflow环

1. Anaconda下载安装:https://www.continuum.io/downloads

版本为:Anaconda3,for windows,64bit(tensorflow在windows下只支持python 3.5以上、amd64)

2.?

一定要是python3.5.2,py3.5.1与py3.6安装会报出找不到tensorflow资源的错误

激活tensorflow环境

输入python --version,查看是否切换到python3.5 工作环境

3. 安装并测试tensorflow

测试

<code class="language-plain">python

import tensorflow as tf
hello = tf.constant('Hello,Tensorflow!')
sess = tf.Session()
print(sess.run(hello))
a = tf.constant(10)
b = tf.constant(22)
print(sess.run(a+b))


tensorflow具体使用教程:

http://www.cnblogs.com/wangxiaocvpr/p/5893797.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读