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
Installing LangGraph
Choose your preferred package manager:-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:LangChain Integrations
While LangGraph works standalone, you may want LangChain for additional integrations:Verify Installation
Confirm LangGraph is installed correctly: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
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
- PyPI Package - Official package page
- GitHub Repository - Source code and issues
- Changelog - Release notes and updates
- LangSmith - Debugging and deployment tools
For JavaScript/TypeScript, see the LangGraph.js installation guide.