poetry add 할 때 gz,bz2,xz,tar ReadError 나는 경우

poetry add를 사용해서 패키지를 설치하려는데 아래와 같은 오류가 나왔다.

file could not be opened successfully:
- method gz: ReadError('not a gzip file')
- method bz2: ReadError('not a bzip2 file')
- method xz: ReadError('not an lzma file')
- method tar: ReadError('invalid header')

이런 경우 아래 처럼 –no-cache 옵션을 넣어주면 된다.

poetry add --no-cache [패키지 이름]

참고

  • https://stackoverflow.com/questions/76291327/adding-langchain-library-via-poetry-add-not-working

Leave a Reply