Python Package
Requirements
Phoenix requires:- Python: 3.10, 3.11, 3.12, or 3.13
- Operating System: Linux, macOS, or Windows
pip (Recommended)
Install Phoenix using pip:arize-phoenix package includes:
- Phoenix server
- Tracing capabilities
- Evaluation tools
- Client libraries for interacting with Phoenix
The full
arize-phoenix package is recommended for most users. If you only need specific functionality (like just the client), see the Lightweight Packages section below.conda
Install Phoenix using conda:uv
If you’re using uv for faster Python package management:Verify Installation
Verify that Phoenix is installed correctly:Docker
Phoenix provides official Docker images hosted on Docker Hub.Pull the Latest Image
Run Phoenix in Docker
6006: Phoenix web UI and HTTP API4317: gRPC endpoint for OpenTelemetry traces9090: Prometheus metrics (optional)
Docker Compose
For a complete setup with PostgreSQL, create adocker-compose.yml:
docker-compose.yml
Building from Source (Docker)
To build the Docker image yourself:For ARM64 architectures (like Apple Silicon or Raspberry Pi), the Dockerfile automatically detects and uses the appropriate base image.
Installing from Source
For development or to get the latest unreleased features:Install uv (if not already installed)
Phoenix uses uv for dependency management:
Lightweight Packages
If you have a deployed Phoenix instance and only need specific functionality, you can install lightweight sub-packages:Python Sub-packages
TypeScript/JavaScript Packages
For Node.js applications:Environment Variables
Phoenix can be configured using environment variables:| Variable | Description | Default |
|---|---|---|
PHOENIX_PORT | Port for the web server | 6006 |
PHOENIX_HOST | Host to bind to | 0.0.0.0 |
PHOENIX_SQL_DATABASE_URL | Database URL (supports SQLite and PostgreSQL) | SQLite in working directory |
PHOENIX_WORKING_DIR | Directory for storing data | Current directory |
PHOENIX_TELEMETRY_ENABLED | Enable/disable usage telemetry | true |
Phoenix uses SQLite by default for simplicity. For production deployments, we recommend using PostgreSQL. See the Deployment guide for more information.
Upgrading Phoenix
To upgrade to the latest version:Troubleshooting
Import errors after installation
Import errors after installation
If you encounter import errors, ensure you’re using a compatible Python version:Phoenix requires Python 3.10 or higher. If you’re using an older version, upgrade Python or create a new virtual environment with a compatible version.
Permission denied errors on Linux/macOS
Permission denied errors on Linux/macOS
If you get permission errors during installation, try using a virtual environment:
Docker container exits immediately
Docker container exits immediately
Check the container logs:Common issues include port conflicts (something else using port 6006) or database connection problems.
SQLite database locked errors
SQLite database locked errors
This can happen if multiple Phoenix instances try to use the same SQLite database. Either:
- Use different working directories for each instance
- Switch to PostgreSQL for multi-instance deployments
- Ensure only one Phoenix instance is running at a time
Next Steps
Now that you have Phoenix installed:Quickstart Guide
Get Phoenix running and trace your first application.
Deployment Guide
Learn how to deploy Phoenix for production use.