# Unable to install Python package llama-index-embeddings-huggingface

**URL:** <https://discuss.huggingface.co/t/unable-to-install-python-package-llama-index-embeddings-huggingface/127627>\
**Category:** Beginners\
**Created:** [November 25, 2024, 2:26pm UTC](https://discuss.huggingface.co/t/unable-to-install-python-package-llama-index-embeddings-huggingface/127627 "2024-11-25T14:26:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark59](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mark59/32/27954_2.png) [@Mark59](https://discuss.huggingface.co/u/Mark59)\
**Post date:** [November 25, 2024, 2:26pm UTC](https://discuss.huggingface.co/t/unable-to-install-python-package-llama-index-embeddings-huggingface/127627/1 "2024-11-25T14:26:16Z")

</div>

I am trying to implement the code discussed in the HuggingFace cookbook article at [Building A RAG Ebook “Librarian” Using LlamaIndex - Hugging Face Open-Source AI Cookbook](https://huggingface.co/learn/cookbook/en/rag_llamaindex_librarian).

I am on an iMac Pro running Sequoia 15.1.1 and Python 3.13.0. Unfortunately the article does not provide package versions.

I get to the point where I am trying to install the package in question:

```auto
llama-index-embeddings-huggingface

```

I get the following error:

```auto
ERROR: Cannot install llama-index-embeddings-huggingface==0.1.3, llama-index-embeddings-huggingface==0.1.4 and llama-index-embeddings-huggingface==0.1.5 because these package versions have conflicting dependencies.

```

The conflict is caused by:

```auto
llama-index-embeddings-huggingface 0.1.5 depends on torch<3.0.0 and >=2.1.2
llama-index-embeddings-huggingface 0.1.4 depends on torch<3.0.0 and >=2.1.2
llama-index-embeddings-huggingface 0.1.3 depends on torch<3.0.0 and >=2.1.2

```

I assume that torch is PyTorch, which is not currently installed.

I am using the command:

```auto
python3 -m pip install llama-index-embeddings-huggingface

```

which causes the mentioned error.

I am not sure what to try to resolve the conflict.

---

<div class="post-metadata">

**Author:** ![arthrod](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/arthrod/32/36448_2.png) [@arthrod](https://discuss.huggingface.co/u/arthrod)\
**Post date:** [November 25, 2024, 3:24pm UTC](https://discuss.huggingface.co/t/unable-to-install-python-package-llama-index-embeddings-huggingface/127627/2 "2024-11-25T15:24:45Z")

</div>

Hey,

I haven’t faced the same problem, so maybe my suggestion won’t be that useful, but I think it’ll fix the issue.

First, instead of using pip as package manager, install uv. Then, create an environment, uv venv, follow the instructions, then uv pip “packages”. Uv is very efficient in solving compatibility problems.

If it doesn’t work, I’d suggest downloading the package directly from github and manually installing with uv pip install .

> **[llama\_index/llama-index-integrations/embeddings at main · run-llama/llama\_index](https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/embeddings)**
>
> LlamaIndex is a data framework for your LLM applications - run-llama/llama\_index

---

<div class="post-metadata">

**Author:** ![arthrod](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/arthrod/32/36448_2.png) [@arthrod](https://discuss.huggingface.co/u/arthrod)\
**Post date:** [November 25, 2024, 3:27pm UTC](https://discuss.huggingface.co/t/unable-to-install-python-package-llama-index-embeddings-huggingface/127627/3 "2024-11-25T15:27:10Z")

</div>

Also, your python is too recent, probably that’s the problem. With uv you can get a specific version for the environment.
