Solution skill
`pip install chromadb` fails with python 3.11.0
Complete solution
Shows how to fix `pip install chromadb` fails with python 3.11.0. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
What was reported: Issue chroma-core/chroma#163 (closed, 19 comments): steps to recreate: 1. open shell with python 3.11.0 2. run pip install chromadb 3. see error "ERROR: Cannot install chromadb==0.1.0, chromadb==0.2.0, chromadb==0.3.0, chromadb==0.3.1 and chromadb==0.3.2 because these package versions have conflicting dependencies." workarounds: 1. downgrade python to 3.10 to match dockerfile version full terminal output: ``` (chroma) jefflab@JeffsM1Air app % pip install chromadb Collecting chromadb Downloading chromadb-0.3.4-py3-none-any.
Steps
- What works:
[HammadB (maintainer)]: chromadb pulls in PyTorch through sentence-transformers, and at the time PyTorch had no Python 3.11 wheels, so pip install chromadb failed on 3.11 with conflicting dependencies. Fix: use Python 3.10 or earlier for chromadb. If you must stay on 3.11, install the pytorch nightly build and build sentencepiece from source, but expect rough edges.
When to use
Use this skill when you run into "pip install chromadb fails with python 3.11.0".
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
Versions mentioned in the source: python 3.11.0, chromadb 0.1.0, chromadb 0.2.0, chromadb 0.3.0, chromadb 0.3.1, chromadb 0.3.2, chromadb- 0.3.4-py3. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/chroma-core/chroma/blob/b36cdce960b9f907ff1e2909cd8449220e9bbee6/Dockerfile#L1
Evidence
In the GitHub issue, the reporter asked: pip install chromadb fails with python 3.11.0. The working answer that came out of the thread: [HammadB (maintainer)]: chromadb pulls in PyTorch through sentence-transformers, and at the time PyTorch had no Python 3.11 wheels, so pip install chromadb failed on 3.11 with conflicting dependencies. Fix: use Python 3.10 or earlier for chromadb. If you must stay on 3.11, install the pytorch nightly build and build sentencepiece from source, but expect rough edges. Source: https://github.com/chroma-core/chroma/issues/163
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
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_OewZoyqNmBUQE41U_T32Pg" 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">`pip install chromadb` fails with python 3.11.0 <span>— Vectle</span></a>