새소식

ETC/오류 해결 - 2023.05.12

Poetry의 does not contain any element 오류 해결하기

  • -

문제 상황


Docker에서 poetry install 하는 과정에서 doest not contain any element 오류가 발생했다. packages = [] 가 설정돼 있어, 상위 디렉토리의 의존성까지 확인하는 것이 원인이라고 한다.

packages = [{include = "style_transfer"}]

 

해결 방법


1. poetry install--no-root 옵션을 준다.

poetry install --no-root

2. packages = [] 라인 자체를 삭제한다.

packages = [{include = "style_transfer"}]

참고

 

Poetry install on an existing project Error "does not contain any element"

I am using Poetry for the first time. I have a very simple project. Basically a_project | |--test | |---test_something.py | |-script_to_test.py From a project I do poetry init and then poetry i...

stackoverflow.com

 

Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.