Skip to content

部署时报错ImportError: cannot import name 'BaseOutputParser' from 'langchain.output_parsers' #315

Answered by Keldos-Li
LibreJiayi asked this question in Q&A
Discussion options

You must be logged in to vote

requirements.txtlangchain 改为 langchain<0.0.119 重新安装依赖即可。新版 langchain 修改了包结构

Originally posted by @elonzh in #314 (comment)

pip install langchain==0.0.116
pip install gradio==3.22.1

Originally posted by @sunjianan9900 in #314 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Keldos-Li
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants