win10安装tensorflow

北慕城南 提交于 2019-12-27 20:03:44
1.下载anaconda

anaconda下载路径
在这里插入图片描述
在这里插入图片描述

2.切换国内镜像源

在这里插入图片描述

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --set show_channel_urls yes

在用户目录下有.condarc文件(我的用户目录是C:\Users\lenovo)删除–defaults后

channels:
 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
show_channel_urls: true
安装TensorFlow
conda install tensorflow

在这里插入图片描述

测试tensorflow

启动jupyter Notebook
在这里插入图片描述
在这里插入图片描述
进入新打开页面输入

import tensorflow as tf
tf.__version__

使用 ctrl+Enter运行显示tensorflow版本。
在这里插入图片描述

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!