Langchain-huggingface

Jofthomas
Tue, 18 Jun 2024 20:02:52 +0000

Alright, you have typos in your shared logs :

marky2376:

ERROR: No matching distribution found for list

You have pip3 install langchain-huggingface list list list

Outside of the error from typo, I can see that:
outside the env, the latest version ( 0.0.3 ) is installed

marky2376:

Requirement already satisfied: langchain-huggingface in /usr/local/lib/python3.10/dist-packages (0.0.3)

And inside it’s being reinstalled from cache because you most likely uninstalled before :

marky2376:

Using cached langchain_huggingface-0.0.3-py3-none-any.whl (17 kB)

So, can you now give me the output of pip list ?

Or alternatively do the following :

1. enter python

2. test the import

joffreythomas@MBP-de-joffrey  % python
Python 3.11.6 (main, Oct  2 2023, 13:45:54) [Clang 15.0.0 (clang-1500.0.40.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from langchain_huggingface import HuggingFacePipeline
>>>