pythonpipopenai-apivector-databasechromadb

Install the correct onnxruntime for chromadb with pip install


I am trying to install chromadb on my Jupyter notebook (Anaconda) using:

pip install chromadb

I get error:

ERROR: Could not find a version that satisfies the requirement onnxruntime>=1.14.1 (from chromadb) (from versions: 1.2.0, 1.3.0, 1.4.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.9.0, 1.10.0, 1.11.0, 1.11.1)
ERROR: No matching distribution found for onnxruntime>=1.14.1 (from chromadb)

Ok, so I run:

pip install onnxruntime

And it installed onnxruntime 1.11.1 But chromadb requires >1=1.14.1

I am assuming that the highest onnxruntime compatible with my OS (mac) is 1.11.1. Is there a way around it?


Solution

  • onnxruntime 1.11.1 supports Python 3.6 (see the middle of the left column). Later versions don't support 3.6. I guess you use Python 3.6. To install a later version of onxruntime upgrade Python. All versions up to the current 1.15.1 requires at least 3.7; 1.15.0 and 1.15.1 don't provide wheels for Python 3.7, only for 3.8+.