You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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"
    
  • 若之前已存在依赖冲突残留,先清理虚拟环境再重新安装:
    1. 删除现有Poetry虚拟环境:
      poetry env remove python3
      
    2. 重建虚拟环境并安装全量依赖:
      poetry install --extras "llms-llama-cpp ui"
      
  • 完成安装后执行make run即可启动PrivateGPT。

内容的提问来源于stack exchange,提问作者Patrick Conway

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.28 04:50:55