Find answers from the community

Updated 3 months ago

Hello Everyone, I am completely new to

Hello Everyone, I am completely new to llama_index and I am literally having trouble at the first line of code when doing the "Five lines of code" started example with python. I can't seem to be able to import llama_index module.

I'm on versions:
llama_index: 0.9.15
Python: Python 3.12.0
L
j
7 comments
If you run the code, does it work? It might just be your IDE complaining
I think that's vscode? You need to get vscode to point to the same venv you installed llama-index in
No it gives the module not found error
Plain Text
python -m venv venv
source venv/bin/activate
pip install llama-index
Yep that's vscode. So did follow the same steps you mentioned. Installed llama_index inside the venv :/
Right, so after running the above code block in your terminal, you should be able to run your script like python ./starter.py
I was able to figure it out. I was doing something really dumb. I had done pip install llama_index for some reason instead of llama-index. Thank you, Logan!
Add a reply
Sign up and join the conversation on Discord