能安装GPU的前提是:
1、显卡支持CUDA
 (1)右击我的电脑–属性
 (2)打开设备管理器

 (3)显示适配器

我的电脑是支持CUDA的

2、pip 版本 >= 8.1
查看pip版本 :pip -V
更新pip : python -m pip install -U pip

安装Anaconda

安装anaconda,这个在之前的博客里已经详细介绍过
(https://blog.csdn.net/qq_39295665/article/details/88206251)

安装CUDA

(1)进入官网,https://developer.nvidia.com/cuda-toolkit-archive
下载对应版本的cuda,这里下载的是8.0版本

(2)点开安装包后,选择路径存放

(3)开始解压

(4)测试兼容性

(5)安装协议

(6)自定义选择安装位置

 安装CUDA相关项

(8)安装结束

(9)测试

在命令行输入nvcc -V

安装cudnn

(1)进入官网选择相对应版本下载
https://developer.nvidia.com/cudnn

选择download
(2)进行注册
(3)选择相对应版本

(4)进行解压

将解压后的这个.dll文件复制到CUDA文件夹下的对应地址

安装TensorFlow

(1)我的python版本是3.7,3.7版本的python不支持pip安装tensorflow
因,此需要在系统的环境变量中加入两条路径

 第2和3需要自己手动添加

(2)使用语句pip3 install --upgrade tensorflow-gpu安装

(3)测试
在命令行中,进入python,并输入以下代码:

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
1
2
3
4

查看tensorflow版本

遇到的问题

1、importerror: Something is wrong with the numpy installation. While importing we detected an older version of numpy in [‘C:\Users\WeiLinLin\Anaconda3\envs\tensorflow\Lib\site-packages\numpy’]. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

出现这个报错说明在安装新的软件,或者更新numpy时,旧的numpy没有卸载掉,两版numpy导致出现冲突。

解决:
(1)卸载numpy :pip uninstall numpy
(2)再卸载numpy,直到卸载到提示信息,此时完全已经没有numpy了为止,提示了Skipping numpy as it is not installed.
(3)安装numpy : pip install numpy

2、Tensorflow导入报"Failed to load the native TensorFlow runtime."

解决:
更新TensorFlow : pip install --upgrade --ignore-installed tensorflow

---------------------
作者:qq_39295665
来源:CSDN
原文:https://blog.csdn.net/qq_39295665/article/details/90581702
版权声明:本文为博主原创文章,转载请附上博文链接!

window10+python3.7安装tensorflow--gpu tensorflow 安装的更多相关文章

  1. Win10下 tensorflow gpu版安装

    准备: 系统环境: windows10 + Anaconda3 + Pycharm (1)环境配置: 打开Anaconda Prompt,输入清华仓库镜像,这样更新会快一些: 输入: conda co ...

  2. Ubuntu 16.04 + CUDA 8.0 + cuDNN v5.1 + TensorFlow(GPU support)安装配置详解

    随着图像识别和深度学习领域的迅猛发展,GPU时代即将来临.由于GPU处理深度学习算法的高效性,使得配置一台搭载有GPU的服务器变得尤为必要. 本文主要介绍在Ubuntu 16.04环境下如何配置Ten ...

  3. Python3.7+Pycharm+cuda10.0+tensorflow GPU版本 安装

    处理器:I5-7500 显卡   :GTX1050Ti 系统   :Win10 1. 首先搭建Python环境. 官网https://www.python.org/downloads/下载Python ...

  4. tensorflow 一些好的blog链接和tensorflow gpu版本安装

    pading :SAME,VALID 区别  http://blog.csdn.net/mao_xiao_feng/article/details/53444333 tensorflow实现的各种算法 ...

  5. tensorflow GPU版本安装及配置

    经检测速度大幅度上升,不枉费我折腾了这么久,最坑的就是网上教程.书都没有写将cuda的bin加入全局变量,还是根据报错信息推出来的. 1.cuda9.0下载安装 https://developer.n ...

  6. 【转】Ubuntu 16.04安装配置TensorFlow GPU版本

    之前摸爬滚打总是各种坑,今天参考这篇文章终于解决了,甚是鸡冻\(≧▽≦)/,电脑不知道怎么的,安装不了16.04,就安装15.10再升级到16.04 requirements: Ubuntu 16.0 ...

  7. Win10上安装Keras 和 TensorFlow(GPU版本)

    一. 安装环境 Windows 10 64bit  家庭版 GPU: GeForce GTX1070 Python: 3.5 CUDA: CUDA Toolkit 8.0 GA1 (Sept 2016 ...

  8. 在 Ubuntu16.04上安装anaconda+Spyder+TensorFlow(支持GPU)

    TensorFlow 官方文档中文版 http://www.tensorfly.cn/tfdoc/get_started/introduction.html https://zhyack.github ...

  9. Win10 TensorFlow(gpu)安装详解

    Win10 TensorFlow(gpu)安装详解 写在前面:TensorFlow是谷歌基于DistBelief进行研发的第二代人工智能学习系统,其命名来源于本身的运行原理.Tensor(张量)意味着 ...

  10. Windows7 64bits下安装TensorFlow GPU版本(图文详解)

    不多说,直接上干货! Installing TensorFlow on Windows的官网 https://www.tensorflow.org/install/install_windows 首先 ...

随机推荐

  1. etree不存在解决方法

    from lxml import html text=xxx//测试的html文本 etree = html.etree htmlDiv = etree.HTML(text) title = html ...

  2. 2018-12-27-WPF-从文件创建图片的方法

    title author date CreateTime categories WPF 从文件创建图片的方法 lindexi 2018-12-27 11:37:46 +0800 2018-12-27 ...

  3. ORACLE 所有 表 记录 条数

    SELECT TABLE_NAME,TO_NUMBER(EXTRACTVALUE(XMLTYPE(DBMS_XMLGEN.GETXML('SELECT COUNT(*) CNT FROM '||TAB ...

  4. npm run dev 和 npm run serve

    1.ERR引发的思考 创建好的 vue 项目直接执行 vue run dev 报错?运行 vue run serve 就可以启动...如下 npm run dev npm ERR! missing s ...

  5. CSS3--关于z-index不生效问题

    最近写CSS3和js结合,遇到了很多次z-index不生效的情况: 1.在用z-index的时候,该元素没有定位(static定位除外) 2.在有定位的情况下,该元素的z-index没有生效,是因为该 ...

  6. PHPCMS快速建站系列之phpcms v9 模板标签说明整理

    [摘要]本文介绍phpcms v9中模板标签使用说明. {template "content","header"} 调用根目录下phpcms\template\ ...

  7. js获取url制定的某个参数

    <script>function getURLParam(strParamName, url) {    var strReturn = "";    var strH ...

  8. JavaScript--查看代码运行效率console.time()与console.timeEnd()用法

    程序运行时间计算: <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...

  9. JavaScript--时间日期格式化封装

    这是一个正常的封装: 其他非正常的请按照以下语句自由搭配 <!DOCTYPE html> <html lang="en"> <head> < ...

  10. LeetCode191 Number of 1 Bits. LeetCode231 Power of Two. LeetCode342 Power of Four

    位运算相关 三道题 231. Power of Two Given an integer, write a function to determine if it is a power of two. ...