Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

그냥 저냥

poetry 설치 및 실행 명령어 정리 본문

TIP

poetry 설치 및 실행 명령어 정리

요다다 2023. 7. 7. 15:29

install

리눅스 : curl -sSL https://install.python-poetry.org | python3 -
- curl not found 에러가 발생한다면 apt install -y curl 로 설치해주자
윈도우 : (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -

프로젝트 생성

poetry init
위 명령어를 통해 pyproject.toml 가 생성된다

패키지 추가

poetry add ~

프로젝트 빌드

poetry build 를 통해 배포 가능한 파일 생성

실행

poetry install 이후 poetry shell

패키지끼리 버전 충돌나면?

pyproject.toml 파일에서 수정해주고 poetry update해주자

'TIP' 카테고리의 다른 글

코랩 런타임 유지하는 방법  (0) 2023.08.23
가상환경에서 react + Fast API 연동하기  (0) 2023.07.14
virtualenv 에러  (0) 2023.04.27
docker error  (0) 2023.04.25
서버에서 삭제한 파일 용량 정리하기  (0) 2023.04.25