-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'llama_index' #11584
Comments
Hey there, @sluggishthingg! Fancy seeing you here again. Hope this message finds you less sluggish than your username suggests 😜 Based on the error message you provided, it seems like Python cannot find the
pip install llama_index
import sys
print(sys.path) If the path to the
If none of these solutions work, could you provide more information about your setup? Specifically, it would be helpful to know:
This will help diagnose the issue further. Regarding the similar issues in the LlamaIndex repository, there are a few that might be relevant:
Please note that these solutions might not directly apply to your issue, but they might give you some ideas on what to try next. Sources
|
Did you run Maybe start with a fresh venv
|
isn't happening with fresh env |
ModuleNotFoundError: No module named 'llama_index' it is showing the error: |
One error that I had at my end was my file name was "llama_index.py" and when I tried to import from llama_index.llms etc, it would do a circular import and throw this error. Change your file name and it works fine. |
Thanks for the tip!
…On Mon, 24 Jun 2024 at 17:47, Ashmal Vayani ***@***.***> wrote:
One error that I had at my end was my file name was "llama_index.py" and
when I tried to import from llama_index.llms etc, it would do a circular
import and throw this error. Change your file name and it works fine.
—
Reply to this email directly, view it on GitHub
<#11584 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BI7V4KM7G2NM7R3VJGVKR3LZJAE6PAVCNFSM6AAAAABED2LKLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBWGQ2DGNZXHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
The information in this message may be proprietary and/or confidential and
protected from disclosure. If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly prohibited. If
you have received this communication in error, please notify ATMECS and
delete it from your computer.
|
you mean i need to download the py file of llama_index |
There's no need to download anything. I made a custom python file through which I was running my code. The name of that file was "llana_index.py", I just changed the name of that file and it worked for me. |
Question Validation
Question
from llama_index.core.query_engine import RetrieverQueryEngine
ModuleNotFoundError: No module named 'llama_index'
...its showing module NotFounderror how to fix it??
The text was updated successfully, but these errors were encountered: