Requirements
Before installing angr, ensure you meet these requirements:Python Version
Python 3.10 or higher is required. angr supports Python 3.10, 3.11, 3.12, and 3.13.
Installation methods
Using pip (recommended)
The simplest way to install angr is using pip with a virtual environment:Install angr
- archinfo - Architecture information and definitions
- pyvex - Python bindings for VEX IR
- cle - Binary loader
- claripy - Constraint solver interface
- capstone - Disassembly engine
- pypcode - P-code translation
- And many more (see Core dependencies below)
Optional dependencies
angr supports several optional features that require additional packages:Keystone - Assembly engine
Keystone - Assembly engine
For assembling machine code:Or install separately:
Unicorn - Concrete execution engine
Unicorn - Concrete execution engine
For faster concrete execution using Unicorn:Or install separately:
AngrDB - Database support
AngrDB - Database support
For storing analysis results in a database:This installs SQLAlchemy for database operations.
LLM - Large Language Model integration
LLM - Large Language Model integration
For LLM-powered analysis features:This installs pydantic-ai for LLM integration.
Telemetry - OpenTelemetry support
Telemetry - OpenTelemetry support
For performance monitoring and tracing:
Install all optional dependencies
To install angr with all optional features:Development installation
If you want to contribute to angr or use the latest development version:Install development dependencies
angr uses Then install angr in development mode:This installs:
uv for development. Install uv first:- All core dependencies
- Development tools (pytest, ruff, coverage, etc.)
- Documentation tools (sphinx, furo, etc.)
- All optional dependencies
angr includes Rust components that are compiled during installation. Ensure you have a Rust toolchain installed for development builds.
Core dependencies
angr automatically installs these core dependencies:Core analysis components
Core analysis components
- archinfo (9.2.205.dev0) - Architecture definitions
- pyvex (9.2.205.dev0) - VEX IR lifting
- cle (9.2.205.dev0) - Binary loading
- claripy (9.2.205.dev0) - Constraint solving
Disassembly and lifting
Disassembly and lifting
- capstone (5.0.6) - Multi-architecture disassembler
- pypcode (>=3.2.1, <4.0) - P-code translation
Utilities
Utilities
- networkx (>=2.0, !=2.8.1) - Graph algorithms
- cffi (>=1.14.0) - C Foreign Function Interface
- cachetools - Caching utilities
- sortedcontainers - Sorted data structures
- rich (>=13.1.0) - Rich terminal output
- GitPython - Git repository interaction
- psutil - System and process utilities
- lmdb - Lightning Memory-Mapped Database
- msgspec - Fast serialization
Symbolic execution
Symbolic execution
- sympy - Symbolic mathematics
- pycparser (~=3.0) - C code parsing
Other
Other
- protobuf (>=6.33.0) - Protocol buffers
- cxxheaderparser - C++ header parsing
- pydemumble - Symbol demangling
- mulpyplexer - Multiplexing utilities
- typing-extensions - Typing backports
- colorama (Windows only) - Cross-platform colored output
Troubleshooting
Common issues
ImportError: No module named 'angr'
ImportError: No module named 'angr'
Solution: Ensure you activated your virtual environment and ran
pip install angr.Python version too old
Python version too old
Error:
angr requires Python 3.10 or higherSolution: Upgrade Python or use pyenv to install a newer version:Compilation errors during installation
Compilation errors during installation
Error: Errors building wheels or compiling native extensionsSolution: Install build dependencies:Ubuntu/Debian:macOS:Windows: Install Microsoft C++ Build Tools
Capstone installation fails
Capstone installation fails
Solution: Capstone is pinned to version 5.0.6. If installation fails, try:
Memory errors during analysis
Memory errors during analysis
Issue: Large binaries may consume significant memorySolution: Use
auto_load_libs=False when loading binaries:Platform-specific notes
- Linux
- macOS
- Windows
Most Linux distributions work out of the box. Install development headers:
Verifying your installation
Run this script to verify all components are working:Getting help
If you encounter issues not covered here:GitHub Issues
Report bugs or installation problems
Documentation
Browse the official documentation
API Reference
Explore the API documentation
Awesome angr
Community resources and examples