■ 파이썬 설치
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 선택
'스크립트 > Python' 카테고리의 다른 글
Atom 패키지 조회시 self signed certificate in certificate chain 오류 조치 방법 (1) | 2021.06.08 |
---|---|
아나콘다 명령어 (0) | 2021.06.08 |
파이썬 GUI (tkinter 라이브러리) (1) | 2021.05.30 |
urlopen 파라메터 전달 (0) | 2021.05.30 |
urllib.parse (0) | 2021.05.30 |