博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
tensorflow开发环境搭建
阅读量:5927 次
发布时间:2019-06-19

本文共 1050 字,大约阅读时间需要 3 分钟。

hot3.png

一、下载anaconda并安装

二、安装tensorflow

    打开Anaconda Prompt

    1、修改Anaconda 安装源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

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

conda config --set show_channel_urls yes

    2、修改pip安装源

在D:\Users\当前用户\pip下增加pip.ini,内容如下

[global]  

index-url=

[install]  

trusted-host=mirrors.aliyun.com 

    3、安装tensorflow

conda create -n tensorflow python=3.6

activate tensorflow

pip install --ignore-installed --upgrade tensorflow

pip install --ignore-installed --upgrade tensorflow-gpu      #(GPU版)

    4、验证安装

https://www.tensorflow.org/install/install_windows (Validate your installation)

$ python

Enter the following short program inside the python interactive shell:

>>> import tensorflow as tf

>>> hello = tf.constant('Hello, TensorFlow!')

>>> sess = tf.Session()

>>> print(sess.run(hello))

If the system outputs the following, then you are ready to begin writing TensorFlow programs:

Hello, TensorFlow!

三、安装CUDA Toolkit(可选)

转载于:https://my.oschina.net/jackruan/blog/1585619

你可能感兴趣的文章
Java8新的异步编程方式 CompletableFuture(三)
查看>>
基于DeepConvLSTM的传感器信号分类
查看>>
【JS第34期】BOM-window对象
查看>>
Android ContentProvider支持跨进程数据共享与"互斥、同步" 杂谈
查看>>
使用CADisplayLink实现UILabel动画特效
查看>>
iOS11、iPhone X 适配简单,但你的Apple思维适配做好了么?
查看>>
JS设计模式五:职责链模式
查看>>
图片加载框架Picasso - 源码分析
查看>>
[单刷 APUE 系列] 第十四章——高级 I/O
查看>>
app启动广告页的实现,解决了广告图片要实时更新的问题
查看>>
朱晔的互联网架构实践心得S1E7:三十种架构设计模式(上)
查看>>
SpringBoot整合Redis
查看>>
使用Java API的5个技巧
查看>>
Handler 机制分析
查看>>
边写 Javascript 代码边玩游戏 – WarriorJS
查看>>
SDWebImage 4 0 迁移指南
查看>>
CSS缩写总结
查看>>
深入OKHttp源码分析(二)----OkHttp任务调度核心类Dispatcher解析
查看>>
深入剖析Redis系列(五) - Redis数据结构之字符串
查看>>
Go语言实时GC - 三色标记算法
查看>>