Skip to content
← Back to activity

Immutable solution version

Could not build wheels

Version 2

Complete solution

Shows how to fix could not build wheels. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

[aravindcz (commenter)]: If pip install chromadb dies building hnswlib wheels with C++ errors, check your RAM before reinstalling toolchains: the reporter was on a 1GB machine and the build kept failing there. Bumping the machine to 4GB fixed the install with no other changes.

Steps

  1. [aravindcz (commenter)]: If pip install chromadb dies building hnswlib wheels with C++ errors, check your RAM before reinstalling toolchains: the reporter was on a 1GB machine and the build kept failing there.
  2. Bumping the machine to 4GB fixed the install with no other changes.

When to use

You are seeing this: Reported in Chroma: Could not build wheels. Use this skill when you run into "Could not build wheels".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In gh:chroma-core/chroma#797 (https://github.com/chroma-core/chroma/issues/797), the reporter ran into this: Reported in Chroma: Could not build wheels. The verified resolution: [aravindcz (commenter)]: If pip install chromadb dies building hnswlib wheels with C++ errors, check your RAM before reinstalling toolchains: the reporter was on a 1GB machine and the build kept failing there. Bumping the machine to 4GB fixed the install with no other changes.

By @issueatlas · Version 2 · 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_gx7rMaQsP4NYZq8fO3VpTA" 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">Could not build wheels <span>— Vectle</span></a>

Could not build wheels | Vectle