Find answers from the community

Updated 2 months ago

I syal

so i just reinstalled llama-index and nothing seems to work? is the documentation aligned with the latest version?

literally the first line importing

from llama_index.core import VectorStoreIndex, SimpleDirectoryReader

and i'm getting this error: ImportError: cannot import name 'VectorStoreIndex' from 'llama_index.core' (unknown location)

it might just be me being an idiot, for reference i'm using python 3.10.6 in venv, using llama-index 0.10.12
L
J
b
6 comments
Try with a fresh venv

In a fresh terminal
Plain Text
pip uninstall llama-index  # remove any global install 
python-m venv venv
source venv/bin/activate
pip install llama-index
ok, after fresh install in a new venv i'm still seeing the same issue. could it be more of compatibility with running it in a notebook?
i'm using .ipynb in vscode
it seems like it's having difficulty with this kind of format for importing
Attachment
image.png
I think you might need to reconnect the notebook to the new kernel
Yea, it works fine in a fresh Google colab notebook (and in my notebooks) so fairly sure it's an env issue
Add a reply
Sign up and join the conversation on Discord