Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Active
Updated 4 weeks ago
0
Follow
Importing Azure OpenAI with Llama_index v 0.12.2 in Python 3.10 Environment
Importing Azure OpenAI with Llama_index v 0.12.2 in Python 3.10 Environment
Active
0
Follow
h
hsahire
4 weeks ago
Β·
Hello All,
I am trying llama_index v 0.12.2 and importing AzureOpenAI with PYthon3.10 env
(llama_index.llms.azure_openai import AzureOpenAI)
ImportError: cannot import name 'core' from 'llama_index' (unknown location)
any idea
W
h
L
8 comments
Share
Open in Discord
W
WhiteFang_Jr
4 weeks ago
Try doing
pip install -U llama-index-core
h
hsahire
4 weeks ago
tried but still giving same error
Attachment
W
WhiteFang_Jr
4 weeks ago
It could be that your env got borked somewhere, Try installing a a fresh env and then try again
h
hsahire
4 weeks ago
thats what I thought tried it using pycharm once will try it again.
h
hsahire
4 weeks ago
tried again new env creation using jupyeter an pycharm getting same error as as attached log
W
WhiteFang_Jr
4 weeks ago
Just tried in a fresh colab, works for me
Attachment
L
Logan M
4 weeks ago
Try a fresh venv. Pycharm is very annoying when doing this, but normally I would just open a terminal and do
Plain Text
Copy
python -m venv venv source venv/bin/activate pip install ...
L
Logan M
4 weeks ago
It works in other envs, so its something specific to your setup and environment
Add a reply
Sign up and join the conversation on Discord
Join on Discord