Skip to content

ModuleNotFoundError: No module named 'langchain' #49

@compuroad

Description

@compuroad

I followed chatGPT instructions to clone and install the repo dependencies in my IntelliJ IDE. However I could not eliminate this error:


ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 2
1 import bs4
----> 2 from langchain import hub
3 from langchain.text_splitter import RecursiveCharacterTextSplitter
4 from langchain_community.document_loaders import WebBaseLoader

ModuleNotFoundError: No module named 'langchain'

As far I can tell longchain is installed in my Mac laptop:
((venv) ) (base) wilson@Carolinas-iMac rag-from-scratch % python3.12 -m pip show langchain
Name: langchain
Version: 0.3.27
Summary: Building applications with LLMs through composability
Home-page:
Author:
Author-email:
License: MIT
Location: /Users/wilson/IdeaProjects/rag-from-scratch/venv/lib/python3.12/site-packages
Requires: langchain-core, langchain-text-splitters, langsmith, pydantic, PyYAML, requests, SQLAlchemy
Required-by: langchain-community

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions