langchain
langchain copied to clipboard
ModuleNotFoundError: No module named 'langchain.memory'
Issue you'd like to raise.
Hello,
While trying to import from langchain.memory import ConversationBufferMemory
I am getting the error ```
ModuleNotFoundError: No module named 'langchain.memory'
Traceback:
File "c:\users\aviparna.biswas\appdata\local\programs\python\python37\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "D:\Python Projects\POC\Radium\Ana\app.py", line 8, in <module>
from langchain.memory import ConversationBufferMemory
I have already installed langchain and it is showing in my packages.
It works for me.
It works for me.
Is there a specific version of langchain you are using? I have updated it yet the problem is persisting.
for me also , it is working
langchain.version '0.0.154' . Python version is Python 3.9.12
This seems to be python version problem. I was using version 3.7.9 where as I think langchain works on versions >= 3.8. Is the version specifications provided in any documentation. I couldn't find it.
I'm also having this same error. I'm running python 3.11 so it's not a version issue for me. Any idea what it could be?
It's same to me ,python version 3.11.4
same thing for me and I'm running python version 3.10
I comment bc I wanna know. I have the same issue u.u
This was definitely an issue with Python versions. When I tried Python >= 3.10 I could successfully install LangChain, however I'd have missing modules like langchain.memory
and langchain.embeddings
. Once I downgraded my project to Python 3.9 however, everything started working as intended.
I am getting the same error even after downgrading my python version to 3.9,Is there any other solution?