Skip to content

[BUG] ImportError when running tutorial 01_basic_agent.ipynb #2

@981526092

Description

@981526092

Describe the Bug

When I try to run the first cell in tutorials/01_basic_agent.ipynb, I get an ImportError saying langchain_core module not found.

To Reproduce

Steps to reproduce:

  1. Clone the repository
  2. Run pip install -r requirements.txt
  3. Start Jupyter with jupyter notebook
  4. Open tutorials/01_basic_agent.ipynb
  5. Run the first cell with imports
  6. See ImportError

Expected Behavior

The imports should work without errors and I should be able to run the tutorial.

Environment

  • OS: macOS 14.0
  • Python Version: 3.11.5
  • Installation Method: pip

Error Message

ImportError: No module named 'langchain_core'

What I've Tried

  • Reinstalled dependencies with pip install -r requirements.txt --force-reinstall
  • Checked if the package is in requirements.txt

Additional Context

This is my first time working with LangChain. Not sure if I'm missing a step in the setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions