(windows) poetry 설치
Windows 환경에서 poetry 설치 방법
https://python-poetry.org/docs/#installing-with-the-official-installer
Introduction | Documentation | Poetry - Python dependency management and packaging made easy
If you installed using the deprecated get-poetry.py script, you should remove the path it uses manually, e.g. rm -rf "${POETRY_HOME:-~/.poetry}" Also remove ~/.poetry/bin from your $PATH in your shell configuration, if it is present.
python-poetry.org
poetry : ython 의존성 관리자 및 패키지 빌더
Python 프로젝트의 의존성(dependencies)을 관리하고 패키지를 생성하고 배포하는데 사용되는 도구입니다. `poetry`는 `pyproject.toml` 파일을 사용하여 프로젝트 설정과 의존성을 명시적으로 정의합니다. 이를 통해 다른 개발자들이 같은 의존성을 가진 환경에서 코드를 실행할 수 있습니다. 또한, poetry`는 각 프로젝트를 위해 별도의 가상 환경(vitrual environment)을 생성하여 프로젝트 간의 의존성 충돌을 방지하는데 도움이 됩니다.
설치 get-poetry.py프로그램이 더 이상 사용되지 않고 제거되었습니다. 를 사용하여 Poetry를 설치한 경우 get-poetry.py제거(아래 관련 단계에 설명된 대로)한 다음 이 설치 지침을 따르십시오.
install-poetry.pyPoetry 리포지토리에 포함된 이전 스크립트는 더 이상 사용되지 않으며 동결됩니다. In-tree 버전은 제거될 예정 이므로 위에서 설명한 독립 실행형 버전으로 마이그레이션하십시오 .
다른 분들도 해결을 쉽게 하기 위해 작성을 하였습니다.
1. PowerSell 을 관리자 권한으로 실행 후 아래 코드로 설치
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
2. 환경 변수의 시스템 변수 Path를 편집을 눌러 아래 코드 추가
%APPDATA%\Roaming\Python\Scripts
%APPDATA%\AppData\Roaming\pypoetry\venv\Scripts
3. 버전 확인
poetry --version
다른 코드
Poetry 자동 업데이트
poetry self update
Poetry 시험판 설치
poetry self update --preview
Poetry 특정 버전 설치
poetry self update 1.2.0