본문 바로가기
AI 이론과 개발의 혼재/Implementation

딥러닝실습을 위한 간단 개발환경 설정 (Git, Python) for Window

by ministar 2019. 1. 9.


빠른 실습을 위한 간단 개발환경 설정 방법 :-)


사이트 참고 ▼

https://github.com/udacity/deep-reinforcement-learning


1. Git 설치하기 for Window

참고> http://dev-gabriel.tistory.com/21


2. Anaconda 설치하기

참고> https://dwfox.tistory.com/67


3. 개발 가상환경 Setting 


4. 관련 library 설치


1)open AI Gym 관련

git clone https://github.com/openai/gym

cd gym

pip install -e . 


2) RL 관련 pkg 설치

git clone https://github.com/udacity/deep-reinforcement-learning.git

 --> deep-reinforcement-learning\python\requirements.txt 에서 'torch' 삭제하기 (왜냐면 현 window에서 에러남)

cd deep-reinforcement-learning/python
pip install .

강화학습 관련된 모든 패키지가 설치될 것임 :) 



4. 윈도우용 python 패키지 'torch' 설치하기


activate drlnd

cd {'torch-0.4.1-cp36-cp36m-win_amd64.whl' 를 다운로드한 디렉토리}

python -m pip install torch-0.4.1-cp36-cp36m-win_amd64.whl


참고> 윈도우용 python 패키지 'torch' 다운로드 ==> https://pytorch.org/get-started/previous-versions/



5. 만든 virtual 환경과 notebook과의 연동

python -m ipykernel install --user --name drlnd --display-name "drlnd"

jupyter notebook #notebook 실행됨


그러면 git 코드가 연동되어 보인다.

Kernel > Change Kernel > drlnd



관련 post 

2019/01/09 - [AI 이론과 개발의 혼재/Theory] - Reinforcement Learning(강화학습) 개념 이해하기 (1)

2019/01/09 - [AI 이론과 개발의 혼재/Theory] - Reinforcement Learning(강화학습) 개념 이해하기 (2) MDPs


댓글