Skip to main content

Installation

This guide covers installing LangGraph and its dependencies for Python projects.

Requirements

LangGraph requires:
  • Python 3.10 or higher
  • Supported Python versions: 3.10, 3.11, 3.12, 3.13
Python 3.9 and earlier are not supported. Please upgrade to Python 3.10 or later.

Installing LangGraph

Choose your preferred package manager:
The -U flag in pip ensures you get the latest version.

Core Dependencies

When you install LangGraph, the following dependencies are automatically included:
  • langchain-core (>=0.1) - Core LangChain abstractions
  • langgraph-checkpoint (>=2.1.0, <5.0.0) - Checkpointing interfaces
  • langgraph-sdk (>=0.3.0, <0.4.0) - SDK for LangGraph Server API
  • langgraph-prebuilt (>=1.0.8, <1.1.0) - Prebuilt agent components
  • xxhash (>=3.5.0) - Fast hashing for state management
  • pydantic (>=2.7.4) - Data validation and settings management
You don’t need to install these dependencies separately unless you want specific versions.

Optional Dependencies

Depending on your use case, you may want to install additional packages:

Checkpointing Backends

For persistent state storage:

LangGraph CLI

For local development and deployment:
The LangGraph CLI includes tools for developing, testing, and deploying LangGraph applications. It supports Python versions up to 3.13.

LangChain Integrations

While LangGraph works standalone, you may want LangChain for additional integrations:
For specific integrations:

Verify Installation

Confirm LangGraph is installed correctly:
You should see the version number (e.g., 1.0.10). Or run a simple test:

Development Installation

For contributing to LangGraph or running from source:

Version Management

Check Current Version

Upgrade to Latest Version

Install Specific Version

Common Installation Issues

Python Version Mismatch

If you see errors about Python version:

Dependency Conflicts

If you encounter dependency conflicts:

Permission Errors

On Linux/Mac, if you get permission errors:

Virtual Environment Setup

Always use virtual environments to avoid dependency conflicts.

Docker Installation

For containerized deployments:

Next Steps

Now that LangGraph is installed:

Quickstart

Build your first LangGraph application

Core Concepts

Learn the fundamentals of LangGraph

API Reference

Explore the complete API documentation

Examples

See real-world implementations

Additional Resources

For JavaScript/TypeScript, see the LangGraph.js installation guide.