langchain : ModuleNotFoundError: No module named 'langchain_community'
Asked Answered
V

3

18

Trying to execute this code:

from langchain_community.vectorstores import FAISS

Error it is showing: ModuleNotFoundError: No module named 'langchain_community'

Thou I have executed the command:

pip install langchain-community

Valenba answered 15/2 at 5:24 Comment(0)
V
31
pip install langchain-community langchain-core

This is required.

If still not working then:

pip install --upgrade langchain

Also, make sure that python_version=>3.8.1

Valenba answered 15/2 at 5:29 Comment(0)
H
0

Using pip install langchain-community or pip install --upgrade langchain did not work for me in spite of multiple tries.

Using the PyCharm 'Interpreter Settings' GUI to manually install langchain-community instead, did the trick!

Huehuebner answered 18/7 at 13:44 Comment(0)
B
0

In my case, I resolved the issue by downgrading from Python 3.12 to 3.11 and then running the following command:

pip install --upgrade langchain
Babylonian answered 22/7 at 23:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.