- macOS: $ brew install poetry
- linux
- 첫번째 방법: $ curl -sSL https://install.python-poetry.org | python3 -
- 두번째 방법: $ pip3 install poetry
- windows:
- powershell에서 다음 명령 실시: $ (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
- $ poetry init
- $ poetry add [패키지명]
- $ poetry show
- $ poetry remove [패키지명]
- $ poetry run python3 [파이썬파일명]
- $ poetry run python .\src\server\server.py
- $ poetry install
- $ poetry update
- $ poetry env info
- $ poetry env use $PYTHON_HOME/bin/python3
- $ poetry env use /path/to/preferred/python/version
- 예시: $ poetry env use /Library/Developer/CommandLineTools/usr/bin/python3.9
- $ poetry env remove $PYTHON_HOME/bin/python3
- $ poetry shell
- $ poetry env info
- $ poetry env remove $PYTHON_HOME/bin/python3