아나콘다 설치

아나콘다 가상환경 생성 및 tensorflow용 세팅

  • 가상환경 생성
    • conda create -n 가상환경이름 설치파이썬버전
      • ex) conda create -n tf1 python=3.7
      • ex) conda create -n tf2 python=3.7
  • 생성한 가상환경 확인
    • conda info –envs
  • 가상환경 활성화
    • activate 가상환경이름
      • ex) activate tf1
      • ex) activate tf2
  • (가상환경에서)텐서플로우 설치
    • 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
    • 세팅 : conda install nb_conda
    • 실행 : jupyter notebook
      • 실행 경로 지정하여 실행 : 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
Navigation