Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
Member:sungbeanJo_anaconda [2021/01/06 11:01] sungbean |
Member:sungbeanJo_anaconda [2021/01/08 11:44] (current) sungbean [아나콘다 가상환경 생성 및 tensorflow용 세팅] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | 가상환경 생성 | + | ====== 아나콘다 설치 ====== |
| + | * ** 다운로드 페이지 ** | ||
| + | * [[https://www.anaconda.com/products/individual#download-section]] | ||
| + | * 윈도우의 경우 환경변수 설정 필요, 설치 시 체크해주면 자동으로 완료. | ||
| - | conda create -n 가상환경이름 설치파이썬버전 | + | ====== 아나콘다 가상환경 생성 및 tensorflow용 세팅 ====== |
| + | * ** 가상환경 생성 ** | ||
| + | * conda create -n 가상환경이름 설치파이썬버전 | ||
| + | * ex) conda create -n tf1 python=3.7 | ||
| + | * ex) conda create -n tf2 python=3.7 | ||
| - | ex) conda create -n rnn python=3.7 | + | * ** 생성한 가상환경 확인** |
| + | * conda info --envs | ||
| - | 생성한 가상환경들 확인 | + | * ** 가상환경 활성화 ** |
| + | * activate 가상환경이름 | ||
| + | * ex) activate tf1 | ||
| + | * ex) activate tf2 | ||
| - | conda info --envs | + | * ** (가상환경에서)텐서플로우 설치 ** |
| + | * conda install tensorflow==버전 | ||
| + | * ex) conda install tensorflow==1.15 | ||
| + | * ex) conda install tensorflow==2.0 | ||
| + | * gpu 버전 설치시 아래 명령어 사용 | ||
| + | * ex) conda install tensorflow-gpu==1.15 | ||
| + | * ex) conda install tensorflow-gpu==2.0 | ||
| - | 가상환경 활성화 | + | * ** (가상환경에서)주피터 노트북 설치 및 실행 ** |
| - | + | * 설치 : conda install jupyter | |
| - | activate 가상환경이름 | + | * 세팅 : conda install nb_conda |
| - | + | * 실행 : jupyter notebook | |
| - | ex) activate rnn | + | * 실행 경로 지정하여 실행 : jupyter notebook "경로" |
| + | * ** 주피터 노트북 단축키 ** | ||
| + | * ** shift + Enter ** : run cell, select below | ||
| + | * ** Ctrl + Enter ** : run cell | ||
| + | * ** Alt + Enter ** : run cell, insert below | ||
| + | * ** Y ** : to code | ||
| + | * ** M ** : to markdown (설명문) | ||
| + | * ** Z ** : undo last cell deletion | ||
| + | * ** D,D ** : delete selected cell | ||
| + | * B : insert cell below | ||
| + | * X : cut selected cell | ||
| + | * C : copy selected cell | ||
| + | * Shift-V : paste cell above | ||
| + | * V : paste cell below | ||
| + | * Shift-M : merge cell below | ||