Find answers from the community

s
F
Y
a
P
Updated last month

from llama_index.core import Settings,

from llama_index.core import Settings, Getting this Error message with updated llama_index. ImportError: cannot import name 'Settings' from 'llama_index.core' (unknown location). Having the same problem trying to import Documents from core
L
d
n
23 comments
did you start with a fresh venv?
This works fine in google colab
yes. i did, been using VS code
Are you sure?

Plain Text
python -m venv venv
source venv/bin/activate
pip install llama-index


Plain Text
from llama_index.core import Settings, Document


Works for me πŸ€”
just re did all of that and still not getting it
can you kindly run a pip freeze | grep llama-index and share the output here?
llama-index==0.10.1
llama-index-agent-openai==0.1.1
llama-index-core==0.10.1
llama-index-embeddings-openai==0.1.1
llama-index-legacy==0.9.48
llama-index-llms-openai==0.1.1
llama-index-multi-modal-llms-openai==0.1.1
llama-index-program-openai==0.1.1
llama-index-question-gen-openai==0.1.1
llama-index-readers-file==0.1.1
that looks as it should
You for sure ran the venv script above?
is llama-index maybe installed globally and thats causing issues?
let me see if thatll fix it
uninstalled the global version, reran, and still getting same errors here.
when you have the virtualenv activated, can you just run python to load up a python interpreter
Plain Text
from llama_index.core import Settings, Document
ok i think im an idiotr
these virtualenvs can be annoying to deal with at times
they've gotten the best of me too
Add a reply
Sign up and join the conversation on Discord