No such Module as Langchain!

I started with the Langchain demo app. I created my own repo & diployed using streamlit community cloud. I keep gettiing this error

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script

    exec(code, module.__dict__)

  File "/mount/src/streamlit-langchain-test/streamlit_app.py", line 2, in <module>

    from langchain.llms import OpenAI

ModuleNotFoundError: No module named 'langchain'

I see it says python3.9 , on my local machine I’m running python3.10.1 , should I change to python3.9

Please, share the contents of your requirements.txt file.

streamlit
openai
langchain

Git repo: GitHub - ShatilKhan/streamlit-langchain-test

Hey! It works now!
I forgot to push my reuirements.txt to github
It’s working now, thanks!

Awesome! Happy Streamlit-ing! :balloon:

Kindly check the requirements.txt file

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.