After llamaindex
introduced v0.10 in February 2024, it introduced a lot of breaking changes to imports. I am trying to update llama-index
within a conda
environment, but I receive the following error:
> pip install llama-index --upgrade
ERROR: Cannot install llama-index-cli because these package versions have conflicting dependencies.
The conflict is caused by:
llama-index-vector-stores-chroma 0.1.4 depends on onnxruntime<2.0.0 and >=1.17.0
llama-index-vector-stores-chroma 0.1.3 depends on onnxruntime<2.0.0 and >=1.17.0
llama-index-vector-stores-chroma 0.1.2 depends on onnxruntime<2.0.0 and >=1.17.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
I have tried pip install llama-index-vector-stores-chroma
but get the same error.
I have also tried installing onnxruntime
but get this error:
pip install onnxruntime
ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none)
ERROR: No matching distribution found for onnxruntime
How can I update llama-index
?
I was able to solve this using this workaround: conda install onnxruntime -c conda-forge
. I got it from this thread: github.com/microsoft/onnxruntime/issues/11037
If there is a reason to not use the conda forge, please leave a comment.