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

安装langchain-weaviate时触发simsimd构建失败的问题求助

安装langchain-weaviate时触发simsimd构建失败的问题求助

我正跟着LangChain的文档尝试用本地Weaviate服务器搭建RAG系统,但在安装依赖库时遇到了报错。

执行的安装命令:

pip install langchain-weaviate

报错详情:

Collecting langchain-weaviate
  Using cached langchain_weaviate-0.0.3-py3-none-any.whl.metadata (2.7 kB)
Requirement already satisfied: langchain-core<0.4,>=0.1.33 in d:\ds\venv\lib\site-packages (from langchain-weaviate) (0.3.31)
Collecting numpy<2.0.0,>=1.26.2 (from langchain-weaviate)
  Using cached numpy-1.26.4.tar.gz (15.8 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting simsimd<5.0.0,>=3.6.1 (from langchain-weaviate)
  Using cached simsimd-4.4.0.tar.gz (33 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "D:\DS\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
        File "D:\DS\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
        File "D:\DS\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-z_l8tv83\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel       
          return self._get_build_requires(config_settings, requirements=[])
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-z_l8tv83\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-z_l8tv83\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 6, in <module>
      FileNotFoundError: [Errno 2] No such file or directory: 'VERSION'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
PS D:\DS\rag\backend>

(注:实际错误内容更长,这里只贴出了关键部分)

我试过先单独安装simsimd,再安装langchain-weaviate,但完全没用,反而让错误信息变得更长了——之前的报错没这么繁琐。我在网上搜了一圈也没找到相关的解决方案,有没有朋友遇到过同样的问题?

非常感谢大家的帮助!

备注:内容来源于stack exchange,提问作者DepressedChalk

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.14 15:19:51