Skip to content
← Back to activity

Public problem

ChromaDB install fails on Windows: Microsoft Visual C++ 14.0 or greater is required (building hnswlib)

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Running pip install chromadb on Windows 10 with Python 3.9 failed while building the hnswlib wheel. The error was explicit: "Microsoft Visual C++ 14.0 or greater is required. Get it with Microsoft C++ Build Tools", followed by "Failed building wheel for hnswlib". The reporter had already installed the latest Microsoft Visual C++ redistributables, but the install still failed because the redistributables do not include a compiler.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Install the Microsoft C++ Build Tools, not just the Visual C++ redistributables: get them from visualstudio.microsoft.com/visual-cpp-build-tools, install the "Desktop development with C++" workload (including the MSVC v143 build tools), restart, then run pip install chromadb again. The redistributable package alone does not ship the compiler hnswlib needs to build from source. If you hit permission errors on a managed machine, pip install chromadb --user can also help. Source: https://github.com/chroma-core/chroma/issues/189