2017-windows安装tensorflow

来源:互联网 发布:风鸣网络 编辑:程序博客网 时间:2024/06/05 10:57

1.安装Anaconda (去官网下载,目前最新是python3.6的)
2.打开anaconda 命令行
3.输入清华镜像
conda config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config –set show_channel_urls yes
4.conda create -n tensorflow python=3.5(目前tensorflow支持python3.5)
5.activate tensorflow
6.pip install --upgrade --ignore-installed tensorflow

7测试
这里写图片描述

import tensorflow as tfhello = tf.constant('Hello, TensorFlow!')sess = tf.Session()print(sess.run(hello))

原链接

http://blog.csdn.net/u010858605/article/details/64128466

Anaconda navigator的使用
1.下载ipython 和Spyder
这里写图片描述
2.在命令行中输入Spyder。出现Spyder的ide
3.运行代码
这里写图片描述

原创粉丝点击