PrivateGPT依赖安装冲突求助:Poetry安装依赖互删
问题描述
按照PrivateGPT教程在WSL上部署带GPU支持的版本,完成指南步骤后执行make run启动时出现报错:
ImportError: Local dependencies not found, install with `poetry install --extras llms-llama-cpp` make: *** [Makefile:36: run] Error 1
执行poetry install --extras llms-llama-cpp安装依赖后,系统提示缺少UI依赖;但再次执行安装操作时,已安装的llama-cpp-python (0.2.53)和llama-index-llms-llama-cpp (0.1.3)会被自动删除,导致依赖冲突无法启动。
解决方案
- 一次性安装所有所需的extras依赖,避免分次安装引发的依赖移除问题,执行命令:
poetry install --extras "llms-llama-cpp ui" - 若之前已存在依赖冲突残留,先清理虚拟环境再重新安装:
- 删除现有Poetry虚拟环境:
poetry env remove python3 - 重建虚拟环境并安装全量依赖:
poetry install --extras "llms-llama-cpp ui"
- 删除现有Poetry虚拟环境:
- 完成安装后执行
make run即可启动PrivateGPT。
内容的提问来源于stack exchange,提问作者Patrick Conway
相关产品推荐
相关产品推荐

