ModuleNotFoundError: No module named 'langchain_core.pydantic_v1'

langchain0.2.1版本中pydantic_v1已被移除掉

解决办法

pip install langchain_classic

from langchain_classic.memory import ConversationBufferWindowMemory
posted @ 2026-04-11 22:26  Felix_Openmind  阅读(7)  评论(0)    收藏  举报
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}