Find answers from the community

Updated 4 months ago

Hello Flask does not find the llama

At a glance
Hello, Flask does not find the llama-index module (can't even start my server) - the error I get is: "ModuleNotFoundError: No module named 'llama_index'"

  1. I'm using a virtual environment
  2. From the terminal window (in my virtual environment), I can import llama_index from the python interpreter
  3. I couldnt find any solutions to my problem in past chats.
I'm using:
  • llama-index 0.6.38.post1
  • Flask 2.3.2
Has anyone ran into a smiliar issue?
W
g
L
6 comments
Did you check pip freeze?
Yes it's there
The thing that's weird is that i can access llama-index from the Python interpreter in the same terminal window (same virtual environment) my flask server is running in
Hmm... how are you launching flask?
Thanks all for your help. I restarted my virtual environment and it worked
Add a reply
Sign up and join the conversation on Discord