■ 파이썬 설치
  https://www.python.org/downloads/

 

■ 가상환경 설정
  > python -m venv python-basic
  > cd python-basic/Scripts      // 맥에서는 bin
  > activate        // 비활성화시에는 deactivate

 

■ Visual Studio Code
  (1) 다운로드
    윈도우) https://code.visualstudio.com/ 
    맥) brew install --cask visual-studio-code

  (2) Extensions 확장프로그램 설치
    Python
    Python Docs
    Python Indent
    python snippets
    Python-autopep8

  (3) Command Palette
    View - Command Palette
      Python: Select Interpreter 선택
      Enter interpreter path... > Find... 열어서 가상환경 폴더의 Scripts 폴더 안에 있는 python을 인터프리터로 선택
      맥) Shell Command: Install 'code' command in PATH 선택

Posted by 겨울섬
,