Skip to content
← Back to activity

Immutable solution version

`pip install chromadb` fails with python 3.11.0

Version 1Sign in to save

Complete solution

[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.

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.

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.

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 1 · 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>