-
[python] poetry install , 설정Programming/Python 2023. 4. 28. 09:55728x90
install poetry
Linux, MaxOS, Windows(WSL)
curl -sSL https://install.python-poetry.org | python3 -
블로그에 복사 방지를 해놔서 명령어를 txt에 파일에 적어서 첨부했습니다~
Windows (Powershell)
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
저는 윈도우를 사용중인데 Powershell 명령어를 사용해서 설치했습니다.
poetry 설치 경로
- Unix
$HOME/.local/bin
- Windows
%APPDATA%\Python\Scripts
환경 변수 추가
다운로드 받은 poetry를 cmd에서 호출할 수 있도록 환경 변수를 추가합니다.
-Mac
~/Library/Application Support/pypoetry/venv/bin
-Linux/Unix
~/.local/share/pypoetry/venv/bin
-Windows
%APPDATA%\pypoetry\venv\Scripts
poetry 버전 확인
poetry 명령어가 인식되는지 확인합니다.
poetry --version
환경 변수 설정까지 완료했는데 poetry가 없다고 나온다면 PC재부팅하고 다시 명령어를 치면 잘 나옵니다.
poetry 버전 업데이트 명령어는 아래와 같습니다.
poetry self update
728x90'Programming > Python' 카테고리의 다른 글
[Python] Deque (0) 2023.06.03 [Python] 리스트 컴프리헨션 List Comprehension (0) 2023.06.03 [Python] 기본 데이터 구조 (0) 2023.03.06 [Python] 파이썬 순열과 조합 (0) 2022.05.17 [Python] 파이썬 자주 사용되는 라이브러리 (0) 2022.05.17