添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
爱喝酒的雪糕  ·  华为MateBook X Pro ...·  4 天前    · 
温柔的大葱  ·  董智 教授·  1 月前    · 
冷冷的上铺  ·  Spring ...·  2 月前    · 
道上混的豌豆  ·  WARNING: It is not ...·  3 月前    · 

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