Langchain-huggingface

marky2376
Tue, 18 Jun 2024 20:31:28 +0000

I’m just typing “!pip3 list” and that command is out putting “list” multiple times. Maybe because I have attempted ~3 installs in my troubleshooting? I have never used that list command before so not sure.

(.venv) mneely@llmmaximus:/usr/projects/langface$ python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

from langchain_huggingface import HuggingFacePipeline
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘langchain_huggingface’

No, if I try outside the venv, I get what you have:

from langchain_huggingface import HuggingFacePipeline

So I actually tried running my script again outside the venv, which I thought I had before. It executes and finds the package. (I get another error).

What am I missing from being able to run this in a venv?