Created
May 15, 2017 12:05
-
-
Save rosdyana/a0832ccd8266c425f96c202c40d2e370 to your computer and use it in GitHub Desktop.
Keras with TF GPU backend in Anaconda Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. create anaconda environment with python 3.5 | |
- conda create -n kerascodai python=3.5 | |
- activate kerascodai | |
2. install tensorflow with GPU support | |
- pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.1.0-cp35-cp35m-win_amd64.whl | |
3. install theano | |
- download minGW | |
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/5.4.0/threads-posix/seh/x86_64-5.4.0-release-posix-seh-rt_v5-rev0.7z/download | |
extract and add mingw bin folder to your windows environment path | |
go to your anaconda\libs path | |
- D:\>cd Anaconda\libs | |
do this command | |
gendef ..\envs\kerascodai\python35.dll | |
dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libpython35.a --input-def python35.def | |
del python35.def | |
- pip install theano==0.8.2 | |
4. install keras | |
- pip install keras==1.1.2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment