新版文档(v1.x)
LangGraph
Install LangGraph

Install LangGraph

To install the base LangGraph package:

pip install -U langgraph
uv add langgraph

To use LangGraph you will usually want to access LLMs and define tools. You can do this however you see fit.

One way to do this (which we will use in the docs) is to use LangChain (opens in a new tab).

Install LangChain with:

pip install -U langchain
# Requires Python 3.10+
uv add langchain
# Requires Python 3.10+

To work with specific LLM provider packages, you will need install them separately.

Refer to the integrations (opens in a new tab) page for provider-specific installation instructions.