win7下安装TensorFlow框架的gpu版本

首先附上成功截图

欢迎大家评论,若碰到了问题,可以直接评论,看到了会立刻回复
在这里插入图片描述

一、系统情况

系统:windows7
gpu:quadro p620
工具:cuda9.0+cudnn9.0+vs2015+Anaconda3.5.0.1

二、安装工具准备

显卡驱动+cuda9.0+cudnn9.0+vs2015+Anaconda3.5.0.1
cuda安装教程见该链接(若已安装请跳过该步骤):https://blog.csdn.net/u011609063/article/details/84887674
Anaconda3安装:https://blog.csdn.net/u011609063/article/details/84888121

三、TensorFlow-GPU安装

注意:TensorFlow不支持python3.7,最高只能支持到3.6,这里我创建了python3.5的环境

  1. 配置清华镜像(建议执行,否则下载太慢导致安装失败):
    conda config --add channels ttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  2. 显示下载url(可选执行):
    conda config --set show_channel_urls yes
  3. 创建一个名为python35,python版本为3.5.x的运行环境(建议执行,创建一个单独的环境运行TensorFlow):
    conda create -n python35 python=3.5在这里插入图片描述
    输入y即可
  4. 激活运行环境(正确激活后)
    activate python35
  5. 输入python会显示如下结果(python的版本号可能不同)
    在这里插入图片描述
  6. 在当前环境中输入以下命令即可安装(此过程时间会比较长)
    conda install tensorflow-gpu
  7. 结果验证:
在命令行中输入python
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))	
最后会输出Hello, TensorFlow!

四、Keras安装

conda install keras

参考1:https://blog.csdn.net/weixin_39290638/article/details/80045236
参考2:https://www.leiphone.com/news/201711/GCh0IBszXrxP1iHU.html
参考3:Keras官方搭建网站https://keras-cn.readthedocs.io/en/latest/for_beginners/keras_windows/#_3
其余参考已经展示在链接中,写文章不易,转载请注明原出处

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值