You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
oduleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_13968\1686623477.py in
----> 1 from langchain.document_loaders import UnstructuredFileLoader
2 from langchain.embeddings.huggingface import HuggingFaceEmbeddings
3 from langchain.vectorstores import FAISS
ModuleNotFoundError: No module named 'langchain.document_loaders'
Hi,
@sssdjj
I'm helping the LangChain team manage their backlog and am marking this issue as stale. From what I understand, the issue involves a ModuleNotFoundError for 'langchain.document_loaders'. There were various suggestions and resolutions provided by different users, including trying 'pip install langchain', updating Python versions to >= 3.10, and encountering conflicts with faiss-gpu for versions >= 3.10.
Could you please confirm if this issue is still relevant to the latest version of the LangChain repository? If it is, kindly let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you!
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Dec 20, 2023
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Dec 26, 2023
In my case, updating python3 version to 3.8 is the only effective solution, and versions >=3.10 will conflict with faiss-gpu.
I face the same issue as well, due to fiass-gpu I had to port down to Python3.10, Now I face langchain_community issue. Can you please assist on which Python version should be used to address these issues so that all the packages can be consumed
I was able to resolve this issue. Just update your python3 version to >= 3.10. Follow the instructions here:
https://stackoverflow.com/questions/75907516/langchain-no-module-named-langchain-document-loaders
Mine was resolved using this solution
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Jun 1, 2024
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Jun 8, 2024