ZenML requires Python 3.10 or higher. Install it using pip:
pip install "zenml[server]"
The [server] extra includes components needed to run a local ZenML server. If you only need to connect to a remote server, use pip install zenml for a lighter installation.
For local development with a self-contained server:
# Install with local server capabilitiespip install "zenml[server]"# Initialize ZenML repository in current directoryzenml init# Start local server (includes web dashboard)zenml login --local
This installs ZenML with:
SQLModel-based local database (SQLite by default)
FastAPI server for the dashboard
All core dependencies for pipeline execution
1
Install ZenML
Run pip install "zenml[server]" to install ZenML with server components.
2
Initialize Repository
Navigate to your project directory and run zenml init to create a .zen directory with configuration.
3
Start Server
Run zenml login --local to start a local server. This launches the dashboard at http://localhost:8237.
4
Verify Installation
Run zenml status to confirm everything is configured correctly.
# Client only - connect to team serverpip install zenml# Add cloud integrations as neededpip install "zenml[s3fs,connectors-aws]"# Connect to production serverzenml login https://zenml.company.com --api-key $ZENML_API_KEY
For contributing to ZenML or using the latest development features:
# Clone repositorygit clone https://github.com/zenml-io/zenml.gitcd zenml# Create virtual environmentpython -m venv .venvsource .venv/bin/activate # On Windows: .venv\Scripts\activate# Install in development mode with all dev dependenciespip install -e ".[dev,server]"# Or use uv for faster installationuv pip install -e ".[dev,server]"# Verify development installationzenml version
Development installation includes testing tools, linting, type checking, and documentation generation dependencies. See pyproject.toml for the complete list.
# Pull the latest ZenML server imagedocker pull zenmldocker/zenml:latest# Run server containerdocker run -d -p 8237:8237 \ --name zenml-server \ zenmldocker/zenml:latest# Access dashboard at http://localhost:8237
Always backup your ZenML database before upgrading, especially in production environments.
# Upgrade to latest versionpip install --upgrade "zenml[server]"# Upgrade to specific versionpip install --upgrade "zenml[server]==0.94.0"# After upgrade, run database migrationszenml migrate# Verify upgradezenml version