1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
38 small wins to finish your pathNext lesson →
Installation and setup
LangGraph installs from PyPI with pip. You need two packages: langgraph runs your graphs, and langchain provides models, message types and tools.
Last updated: 27 Sep, 2026 · LangGraph 1.2 · Python 3.10+
The install command
pip install -U langgraph langchainCheck the install
from importlib.metadata import version
print("langgraph", version("langgraph"))
print("langchain", version("langchain"))What each package does
langgraphis the orchestration layer: graphs, state, edges, checkpointers.langchainsupplies the chat models, message types and tools that graphs use later.- Nothing here needs an API key. The first lessons are plain Python, and a model is added only when the course reaches it.
Watch out. LangGraph needs Python 3.10 or newer. On an older Python the install fails or imports break.
Related
- Previous: LangGraph overview
- Next: State: the dictionary every node shares
- Reference: Install LangGraph
Try it yourself
- Run the version check. Do your versions match 1.x?
- Import
from langgraph.graph import StateGraph, START, ENDand confirm no error.
Little by little, you're building something great.