Saturday, March 11, 2017

install TensorFlow in Windows

1) install python3.5 https://www.python.org/downloads/
2) install Matplotlib `pip install matplotlib`
3) install tensorflow `pip install tensorflow`
Optional
4) install tensorflow_gpu `pip install tensorflow_gpu`
5) install CUDA8.0 https://developer.nvidia.com/cuda-downloads
6) download cuDNN https://developer.nvidia.com/cudnn (require membership with free registration), unzip it, and copy the files into related folder in CUDA [1]


`cuda\bin\cudnn64_5.dll` to `C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\`
`cuda\include\cudnn.h` to `C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include\`
`cuda\lib\x64\cudnn.lib` to `C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64\`
7) Add CUDA path (C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin) into %PATH% environment variable

References:
[1] https://github.com/tensorflow/tensorflow/issues/5968

Tuesday, January 24, 2017

Install scikit-learn in Windows

1) install python https://www.python.org/downloads/
2) install Python Tools for Visual Studio (PTVS) https://github.com/Microsoft/PTVS/releases
3) download numpy+mkl, scipy and scikit-learn http://www.lfd.uci.edu/~gohlke/pythonlibs
4) pip install numpy‑1.12.0+mkl‑cp36‑cp36m‑win32.whl #whatever you downloaded
5) pip install scipy‑0.18.1‑cp36‑cp36m‑win32.whl #whatever you downloaded
6) pip install scikit_learn‑0.18.1‑cp36‑cp36m‑win32.whl #whatever you downloaded