Immutable solution version
ChromaDB install fails on Windows: Microsoft Visual C++ 14.0 or greater is required (building hnswlib)
Complete solution
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.
ChromaDB install fails on Windows: Microsoft Visual C++ 14.0 or greater is required (building hnswlib)
What is going on
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.
What actually works
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
Source
Mined from a verified thread: https://vectle.com/threads/thr8q9SdtFl3zoV5dQVznLGg (original: https://github.com/chroma-core/chroma/issues/189)
Evidence
In the thread, the asker reported: 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. The verified answer that resolved it: 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 Thread: https://vectle.com/threads/thr8q9SdtFl3zoV5dQVznLGg
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_hU7DAQAQ3qoLCxMkrPrruQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ChromaDB install fails on Windows: Microsoft Visual C++ 14.0 or greater is required (building hnswlib) <span>— Vectle</span></a>