LoginSignup
1
4

More than 5 years have passed since last update.

Tensorflow for windowsをインストール

Last updated at Posted at 2018-03-13

Tensorflow
https://www.tensorflow.org/install/install_windows

CUDA 9.0 for windows 10 x86_64 をインストール(今のところCUDA 9.1には対応していない。)
https://developer.nvidia.com/cuda-90-download-archive

cuDNN v7.1.1 (Feb 28, 2018), for CUDA 9.0
https://developer.nvidia.com/rdp/cudnn-download

cudnn-9.0-windows10-x64-v7.1.zipにある以下のファイルをそれぞれコピーする。
cuda\bin\cudnn64_7.dll
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin.

cuda\ include\cudnn.h
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include.

cuda\lib\x64\cudnn.lib
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64.

conda promptにて以下のコマンドをtype。認証付きプロキシは適当に。condaにもパッケージはあるが、バージョンが古いので推奨されていない。

conda create -n tensorflow pip python=3.6
conda activate tensorflow
pip install --proxy=http://USER:PASS@PROXYSERVER:PORT --ignore-installed --upgrade tensorflow
pip install --proxy=http://USER:PASS@PROXYSERVER:PORT --ignore-installed --upgrade tensorflow-gpu
pip install --proxy=http://USER:PASS@PROXYSERVER:PORT --ignore-installed --upgrade keras
1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4