[GH-ISSUE #1331] [langchain]: No module named 'langchain_core.memory' #193

Closed
opened 2026-02-17 17:19:22 -05:00 by yindo · 1 comment
Owner

Originally created by @hananaa16 on GitHub (Nov 7, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/1331

Type of issue

issue / bug

Language

Python

Description

I tried to do the RAG tutorial (https://docs.langchain.com/oss/python/langchain/rag), then I found some problems. So, when I tried to call

from langchain.agents import create_agent

this error message showed up. It seems that the function called deprecated function, because langchain_core.memory is not exist anymore.

ModuleNotFoundError Traceback (most recent call last)
/tmp/ipython-input-2477070364.py in <cell line: 0>()
----> 1 from langchain.agents import create_agent

3 frames
/usr/local/lib/python3.12/dist-packages/langchain/schema/__init__.py in
6 from langchain_core.documents import BaseDocumentTransformer, Document
7 from langchain_core.exceptions import LangChainException, OutputParserException
----> 8 from langchain_core.memory import BaseMemory
9 from langchain_core.messages import (
10 AIMessage,

ModuleNotFoundError: No module named 'langchain_core.memory'

Could someone help me to solve this issue? Thank you.

Originally created by @hananaa16 on GitHub (Nov 7, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/1331 ### Type of issue issue / bug ### Language Python ### Description I tried to do the RAG tutorial (https://docs.langchain.com/oss/python/langchain/rag), then I found some problems. So, when I tried to call from langchain.agents import create_agent this error message showed up. It seems that the function called deprecated function, because langchain_core.memory is not exist anymore. ModuleNotFoundError Traceback (most recent call last) /tmp/ipython-input-2477070364.py in <cell line: 0>() ----> 1 from langchain.agents import create_agent 3 frames /usr/local/lib/python3.12/dist-packages/langchain/schema/__init__.py in <module> 6 from langchain_core.documents import BaseDocumentTransformer, Document 7 from langchain_core.exceptions import LangChainException, OutputParserException ----> 8 from langchain_core.memory import BaseMemory 9 from langchain_core.messages import ( 10 AIMessage, ModuleNotFoundError: No module named 'langchain_core.memory' Could someone help me to solve this issue? Thank you.
yindo added the langchain label 2026-02-17 17:19:22 -05:00
yindo closed this issue 2026-02-17 17:19:22 -05:00
Author
Owner

@mfaizanmumtaz commented on GitHub (Nov 7, 2025):

Run this command pip install --upgrade langchain or if you are using the uv pip install --upgrade langchain

@mfaizanmumtaz commented on GitHub (Nov 7, 2025): Run this command pip install --upgrade langchain or if you are using the uv pip install --upgrade langchain
yindo changed title from [langchain]: No module named 'langchain_core.memory' to [GH-ISSUE #1331] [langchain]: No module named 'langchain_core.memory' 2026-06-05 17:25:34 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#193