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

llama_index导入NebulaGraphStore遇ModuleNotFoundError的解决求助

解决llama_index导入NebulaGraphStore的ModuleNotFoundError问题
  • 修正导入路径:llama-index 0.10.x版本重构了模块结构,原llama_index.graph_stores路径已废弃,正确导入语句应为:

    from llama_index.core.graph_stores.nebula import NebulaGraphStore
    
  • 安装Nebula图存储依赖包:llama-index的Nebula集成属于独立子包,需单独安装:

    pip install llama-index-graph-stores-nebula
    
  • 验证操作:安装完成后,重新运行导入语句即可正常加载NebulaGraphStore类。

原因说明:llama-index 0.10+版本进行了模块化拆分,将核心功能与第三方集成功能分离,原graph_stores模块被移至llama_index.core下,且第三方图存储的支持需要单独安装对应子包,仅更新核心包无法获取该模块。

内容的提问来源于stack exchange,提问作者Kaihua Hou

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.29 19:14:53