在python中安装chromadb库的问题

问题描述 投票:0回答:1

我正在尝试使用 pip 安装 chromadb 库,但它显示错误我还安装了 Microsoft Visual Studio 构建工具,但无法安装它。它显示错误为

 error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x86\\link.exe' failed with exit code 1120
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for chroma-hnswlib
Failed to build chroma-hnswlib
ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects

我正在尝试安装 chromadb 库,以便我可以将其导入到我的项目的 python 中,但我无法安装它。

python visual-studio-code command-prompt libraries install.packages
1个回答
0
投票

我在执行

pip install chromadb==0.3.22
时,在 Windows 操作系统上遇到了类似的问题。

要解决此问题,

您需要先下载https://visualstudio.microsoft.com/visual-cpp-build-tools/

接下来,导航到“单个组件”,找到这两个

和 Windows 10 SDK

来源:https://github.com/chroma-core/chroma/issues/189#issuecomment-1454418844

© www.soinside.com 2019 - 2024. All rights reserved.