Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 807 Bytes

INSTALL.md

File metadata and controls

64 lines (42 loc) · 807 Bytes

poetry

https://python-poetry.org/docs/#installing-with-the-official-installer linux

1. install

  • linux, macOS, window(WSL)
curl -sSL https://install.python-poetry.org | python3 -
  • window(PowerShell)
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -

2. 환경변수 설정

  • linux
  • window 시스템 PATH에 아래 추가
C:\Users\ydj51\AppData\Roaming\Python\Scripts

3. version check

poetry --version

4. initialize project

poetry new demo
poetry init # 이미 생성된 디렉토리에 시작할때

5. activate virtual environment

poetry shell

6. install dependencies

poetry install

7. add dependency

poetry add fastapi