1. visual studio 2017 설치

https://www.visualstudio.com/downloads/

(해당 버전에서는 CL.exe 가 디폴트 포함되어 있지 않기 때문에 C++ 환경을 선택해주어야 함)

(visual studio 설치시 python 과 anaconda는 같이 설치했기 때문에 해당버전을 사용)


2. CUDA 설치

https://developer.nvidia.com/cuda-downloads



3. 설치준비

SET CONDA_SSL_VERIFY=false

conda install 사용시 SSL에러가 발생한다면 verify를 잠시 해제하고 사용한다.



conda install pip six nose numpy scipy

conda install mingw libpython


4. Theano설치 - (conda install theano)

(설치 디렉토리로 이동)


git clone https://github.com/Theano/Theano.git

cd Theano

python setup.py develop

conda list



5. 환경변수 설정

- PATH 정보

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64

- THEANO_FLAGS

값 : floatX=float32,device=gpu,nvcc.fastmath=True,lib.cnmem=0.81



6. Keras 설치 - (pip install keras)

(설치 디렉토리로 이동)


git clone https://github.com/fchollet/keras

cd keras

python setup.py develop

conda list


cd keras/examples

ipython mnist_mlp.py


7. cuDNN

 기설치한 cuda와 호환되는 버전을 다운로드 후 설치된 위치로 디렉토리 copy (bin,include,lib)


참고사이트 

http://bryan7.tistory.com/709

http://jangjy.tistory.com/258


*기타 참고명령

  1. (neuralnets) C:\conda install theano
  2. (neuralnets) C:\conda install mingw libpython
  3. (neuralnets) C:\pip install tensorflow
  4. (neuralnets) C:\pip install keras

Proxy 사용할 경우 .condarc 파일 생성 후
proxy_servers:
    http: http://url:8080
    https: https://url:8080


+ Recent posts