Find answers from the community

Updated 8 months ago

very dumb question-- trying to get some

very dumb question-- trying to get some examples working with pipenv and can't import with: ModuleNotFoundError: No module named 'llama_index' even after pipenv install llama-index
L
n
5 comments
Did you have a previous or global installation of llama-index? Are you running in a notebook?

Nuke your env, try again

Plain Text
pip freeze | grep llama-index | xargs pip uninstall -y
pip install llama-index


Or even create a fresh venv
Plain Text
python -m venv venv
source venv/bin/activate
pip install llama-index
im running in pipenv, no previous global install
Not sure what to tell you then πŸ˜… I never use pipenv, just plain venv or poetry
python -c "from llama_index.core import VectorStoreIndex" -- does that work?
thanks! It was actually a pipenv env issue and since have fixed.
Add a reply
Sign up and join the conversation on Discord