inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

입문자를 위한 LangChain 기초 — v1.0+ 업데이트

RAG (Retrieval-Augmented Generation) 기법 이해: 웹 문서에 대한 QA 챗봇 만들기

typer 호환 문제

621

.Piao.

작성한 질문수 1

0

마지막 RAG 강의에서, 첫번째 명령문을 실행시키면,

!pip install -q langchain langchain-openai tiktoken chromadb

typer 호환과 관련된 에러가 발생합니다.

=====================

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. spacy 3.7.4 requires typer<0.10.0,>=0.3.0, but you have typer 0.12.3 which is incompatible. weasel 0.3.4 requires typer<0.10.0,>=0.3.0, but you have typer 0.12.3 which is incompatible.

=====================

ChatGPT를 통하여 여러 해결방안을 제시받아 시도해 보았는데 해결이 되지 않습니다. 손쉬운 해결 방법이 있을지요?

python llm langchain openai-api

답변 2

0

판다스 스튜디오

안녕하세요. 정확한 원인은 모르겠으나, langchain 설치할 때 코랩 환경의 기존 의존성과 충돌이 발생하는 것 같습니다.

!pip install -q langchain langchain-openai langchain_community tiktoken chromadb

 

langchain_community 을 추가해주고 코드를 실행하시면 실습 코드는 작동이 됩니다.

깃헙 코드도 수정했습니다.

 

감사합니다.

 

0

판다스 스튜디오

안녕하세요. typer를 삭제하고 다시 설치해보셨나요?

!pip uninstall typer

!pip install typer==0.9.0

 

1

.Piao.

네, 해 보았습니다만 삭제하고 다시 설치하면 다음 에러가 발생합니다.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. fastapi-cli 0.0.4 requires typer>=0.12.3, but you have typer 0.9.0 which is incompatible.

GPT에 문의하니 "여러 패키지가 typer의 서로 다른 버전을 요구하기 때문에 발생하는 문제"라고 하여 모든 패키지 업데이트 후 다시 설치해도 에러가 발생합니다.
!pip install --upgrade pip
!pip install --upgrade setuptools
위 실행하고 패키지 다시 설치
-->
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. spacy 3.7.4 requires typer<0.10.0,>=0.3.0, but you have typer 0.12.3 which is incompatible. weasel 0.3.4 requires typer<0.10.0,>=0.3.0, but you have typer 0.12.3 which is incompatible.

기타 가상환경 설정 등 여러 방법을 시도해 보았으나 해결되지 않았습니다.
혹시 일반적인 해결책이 있으면 알려주시면 감사하겠습니다. 저에게만 특이하게 나타나는 에러라면 알아서 해결하겠습니다~!!

예제 001 실행 안됩니다.

0

6

2

ipython 설치가 안되는거 같습니다.

0

8

1

이론 공부법 요약본 버전 업데이트 문의

0

10

1

피드백 내용 문의드립니다.

0

17

0

백준 서비스 종료로 인한 강의 자료 업데이트 요청드립니다.

0

21

1

노드

0

13

1

백준 사이트 준비중이라 문제를 볼 수 가 없어요

0

14

1

작업형 1번문제... 환경관련

0

22

2

09차 네이버 영화 리뷰 수집 실습 관련 질문

0

23

1

12회 기출은 언제 업데이트 될까요??

0

28

2

알파벤티지 sleep(5) 관련 문의

1

35

2

강의 자료 및 코드 수령

0

29

2

8/6 작성한 연장문의 질문글에 대한 재요청

0

35

2

강의 수강 순서

0

103

1

LLM 응답속도

0

110

1

RAG 강의 prompt 질문

0

104

2

system 메세지는 정의가 되어 있는 건가요?

0

87

2

새로 추가된 강의의 강의자료는 따로 없는 걸까요??

0

205

2

안녕하세요. 오늘 커뮤니티에 올라온 서적 예제 4.11관련 질문입니다.

0

131

2

llm 모델 사용 관련 질문 있습니다.

0

228

3

랭체인 질문드립니다.

0

207

2

코드 결과값이 좀 다릅니다.

0

211

2

chain 실행 오류가 납니다.

0

264

2

랭체인 실행이 안됩니다.

0

1486

3