win10安装tensorflow1.5+CUDA9.0+cuDNN7.1+anaconda3+python3.6.3
2018-02-02 19:55
711 查看
tensorflow官网教程还是老版本的,
https://www.tensorflow.org/install/install_windows,
安装之前确定自己有GPU,以及更新对应CUDA版本的显卡驱动,不必安装最新的,选满足要求的稳定版本。
本机64-bit, x86 安装用的是CUDA9.0(注意目前tensorflow1.5只适配到CUDA9.0,CUDA9.1不适配,9.0在官网注册下填个表就可以下了),跟着quick-guide走一遍安装,cuDNN7.1,
以上准备工作完成后,按照这位博主的流程安装Anaconda3+python3.6即可。
1.打开cmd,输入运行:
2.
3.
可能遇到报错:
解决
4.打开ipython,测试
输出b”Hello, TensorFlow!”,全部安装成功!
https://www.tensorflow.org/install/install_windows,
Ensure you meet the following requirements before you install cuDNN. A GPU of compute capability 3.0 or higher. To understand the compute capability of the GPU on your system, see: CUDA GPUs. One of the following supported platforms: Windows 7 Windows 10 One of the following supported CUDA versions and NVIDIA graphics driver: **NVIDIA graphics driver 377.55 or newer for CUDA 8** **NVIDIA graphics driver 385.54 or newer for CUDA 9**
安装之前确定自己有GPU,以及更新对应CUDA版本的显卡驱动,不必安装最新的,选满足要求的稳定版本。
本机64-bit, x86 安装用的是CUDA9.0(注意目前tensorflow1.5只适配到CUDA9.0,CUDA9.1不适配,9.0在官网注册下填个表就可以下了),跟着quick-guide走一遍安装,cuDNN7.1,
Installing cuDNN on Windows The following steps describe how to build a cuDNN dependent program. In the following sections: your CUDA directory path is referred to as C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0 your cuDNN directory path is referred to as <installpath> Navigate to your <installpath> directory containing cuDNN. Unzip the cuDNN package. cudnn-9.0-windows7-x64-v7.zip or cudnn-9.0-windows10-x64-v7.zip Copy the following files into the CUDA Toolkit directory.(复制相应文件到CUDA路径下) Copy <installpath>\cuda\bin\cudnn64_7.dll to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin. Copy <installpath>\cuda\ include\cudnn.h to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include. Copy <installpath>\cuda\lib\x64\cudnn.lib to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64. Set the following environment variables to point to where cuDNN is located. To access the value of the $(CUDA_PATH) environment variable, perform the following steps: Open a command prompt from the Start menu. Type Run and hit Enter. Issue the control sysdm.cpl command. Select the Advanced tab at the top of the window. Click Environment Variables at the bottom of the window. Ensure the following values are set:(设置环境变量) Variable Name: CUDA_PATH Variable Value: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0 Include cudnn.lib in your Visual Studio project. Open the Visual Studio project and right-click on the project name. Click Linker > Input > Additional Dependencies. Add cudnn.lib and click OK.
以上准备工作完成后,按照这位博主的流程安装Anaconda3+python3.6即可。
1.打开cmd,输入运行:
conda create -n tensorflow y
2.
activate tensorflow
3.
pip install --ignore-installed --upgrade tensorflow-gpu
可能遇到报错:
TypeError: parse() got an unexpected keyword argument 'transport_encoding'
解决
conda install -c anaconda html5lib
4.打开ipython,测试
import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') sess = tf.Session() print(sess.run(hello))
输出b”Hello, TensorFlow!”,全部安装成功!
相关文章推荐
- win10 配置tensorflow(GPU) anaconda3 cuda9.0 cudnn for 9.0
- windows 10+Tensorflow 1.5+python 3.5+CUDA 9.0+CUDNN7.0.5配置
- Win10 Anaconda下TensorFlow-GPU环境搭建详细教程(包含CUDA+cuDNN安装过程)
- Ubuntu安装Tensorflow GPU 版本和 CUDA Toolkit 9.1 和 cuDNN 7.0.5 for Python 3
- ubuntu16.04系统GTX1050装tensorflow1.6+cuda9.0+cudnn7.0+anaconda
- ubuntu16.04 + tensorflow1.5-gpu + cuda9.0 +cudnn
- Tensorflow1.4.0(GPU)+Win10+Anaconda5.0.1+CUDA8.0+cuDNN6.0+Python3.6深度学习环境安装
- Ubuntu16.04 安装 CUDA、CUDNN、OpenCV 并用 Anaconda 配置 Tensorflow 和 Caffe 详细过程
- windows10 64位 Tensorflow安装--CUDA 9.1+cuDNN7.1.1+python3.6.4+tf1.6+vs2017
- windows安装tensorflow简单直接的方法(win10+pycharm+tensorflow-gpu1.7+cuda9.1+cudnn7.1)
- (转载)Ubuntu16.04+CUDA8.0+cuDNN7+Anaconda4.4+Python3.6+TensorFlow1.3搭建
- win10 安装cuda9.0+cuDNN7+tensorflow-gpu1.4
- Ubunt16.04快速安装 Cuda8.0 + Cudnn5.1 (Cuda9.0 + Cudnn7.1 )
- Tensorflow+cuda+cudnn+window+Python之window下安装TensorFlow
- 学习笔记1:深度学习环境搭建win+python+tensorflow1.5+CUDA9.0+cuDNN7.0
- ubuntu14.04 安装anaconda+pycharm+cuda+cudnn+theano0.90+keras2.0.2+tensorflow1.1.0
- Ubuntu 16.04 GTX950M + cuda9.0 + cuDNN7.0 + TensorFlow 1.5 安装记录
- Windows 7下安装TensorFlow1.6(cuda9.0+cuDNN 7.0+python3.5+pip9)
- ubuntu16.04安装NIVIDIA显卡驱动,cuda8.0,cuDNN6.0以及基于Anaconda安装Tensorflow-GPU
- Tensorflow学习——Win10安装Tensorflow-gpu和CUDA及cuDNN