X-D-Lab / LangChain-ChatGLM-Webui

基于LangChain和ChatGLM-6B等系列LLM的针对本地知识库的自动问答
Apache License 2.0
3.12k stars 469 forks source link

langchain-serve不兼容无法安装 #155

Open sspeedtail opened 5 months ago

sspeedtail commented 5 months ago

ERROR: Cannot install langchain-serve==0.0.23, langchain-serve==0.0.24, langchain-serve==0.0.25, langchain-serve==0.0.26, langchain-serve==0.0.27, langchain-serve==0.0.28, langchain-serve==0.0.29, langchain-serve==0.0.30, langchain-serve==0.0.31 and langchain-serve==0.0.32 because these package versions have conflicting dependencies.

The conflict is caused by: langchain-serve 0.0.32 depends on pandasai langchain-serve 0.0.31 depends on pandasai langchain-serve 0.0.30 depends on pandasai langchain-serve 0.0.29 depends on pandasai langchain-serve 0.0.28 depends on pandasai langchain-serve 0.0.27 depends on pandasai langchain-serve 0.0.26 depends on pandasai langchain-serve 0.0.25 depends on pandasai langchain-serve 0.0.24 depends on pandasai langchain-serve 0.0.23 depends on pandasai

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

harrytted commented 5 months ago

+1

damon-ldl commented 5 months ago

这个应该是jina和langchain-serve不兼容,可以按照pip install langchain-serve --use-deprecated legacy-resolver pip install jina==3.20.2 pip install langchain-serve解决 https://github.com/jina-ai/langchain-serve/issues/143

JohnsonChow commented 4 months ago

确实存在问题,目前就算注释了这两个包还是不行

JohnsonChow commented 4 months ago

换到Python3.9也是一样

JohnsonChow commented 4 months ago

这个问题记得解决方案可以在https://github.com/jina-ai/langchain-serve/issues/143找到答案。大家给了两种解决方案,我觉得下载源码安装会好一点。