Find answers from the community

Updated 3 months ago

Hi suddenly I can no longer use

Hi, suddenly I can no longer use VectorStoreIndex. It's already imported, my whole code is working before. My llama-index version is 0.8.45.post1 can someone help? This is most likely a package issue since I got my whole code already working yesterday.
L
g
7 comments
What is the issue?
Plain Text
from llama_index import VectorStoreIndex

ImportError: cannot import name 'VectorStoreIndex' from 'llama_index' (/home/gerald.villaran/anaconda3/envs/venv/lib/python3.10/site-packages/llama_index/__init__.py)
huh, that's pretty weird.

I would just reinstall

Plain Text
pip uninstall llama_index
pip install llama_index
no go. did it twice
do you have some file or falder named llama_index?
I would delete/rename that if so. Otherwise, I would try a fresh venv
Thanks for that!
Add a reply
Sign up and join the conversation on Discord