Skip to content

πŸ“₯ Installation

πŸ“¦ Installation Guide

Install FlowyML to run Python jobs locally. Cloud providers and ML frameworks have optional extras.

🐍 Python 3.10+ πŸ“¦ pip install ☁️ Cloud Extras 🐳 Docker Ready

Quick start

Install flowyml for the Basic SDK, tracking, managed artifact storage and Studio. For a local-only Python runner with named artifacts, choose FlowyML Light.

System Requirements

  • Python 3.10+ --- Recommended for best performance and type safety features.

  • OS Agnostic --- Native support for Linux, macOS, and Windows (WSL2 recommended).

  • Memory --- Size memory for the data and libraries your functions use. Training a large model can require substantially more memory than a Python job that processes small files.


Installation Options

Basic installation (default)

python -m pip install flowyml

Basic includes tracking, artifact storage, Studio and stack orchestration. flowyml[basic] selects the same dependencies as flowyml. The standalone Light distribution is an explicit opt-in.

Standalone Light installation

python -m pip install flowyml-light

Light uses the shared standard-library runtime for named artifacts, local pipelines, retries and caching. For the interactive terminal inspector, use python -m pip install "flowyml-light[tui]". Source installs use python -m pip install ./runtime ./light or python -m pip install ./runtime "./light[tui]".

Local jobs use from flowyml.light import ..., flowyml inspect job.py:job and flowyml run job.py:job --tui in both editions. Install flowyml later to add Basic. To opt into tracking, adapt the graph with Pipeline.from_light(job). Run and upgrade a local job

Python extras add dependencies to the base distribution. Consequently, pip install "flowyml[light]" installs Basic and the Light selector together. The standalone install is pip install flowyml-light. Python packaging specification

Upgrading an older all-in-one install

Older FlowyML releases installed the flowyml launcher themselves. The shared runtime now owns it. If your environment already contains flowyml and python -m pip show flowyml-runtime reports that the runtime is missing, use these two commands once. This order prevents pip from removing the new launcher when it uninstalls the old package.

python -m pip uninstall flowyml
python -m pip install flowyml

With uv, use uv pip install --upgrade flowyml in the active environment. After this migration, ordinary pip upgrades work. If you already upgraded an older install with pip and the command disappeared, run python -m pip install --force-reinstall flowyml-runtime==VERSION, replacing VERSION with the version printed by python -m pip show flowyml.

Working with the Basic SDK

Run a plain Python job

Save [12, 8, 5] in orders.json. Keep the business logic in an ordinary Python module so you can test each function directly or put a breakpoint inside it.

orders.py
import json
from pathlib import Path


def read_orders() -> list[int]:
    return json.loads(Path("orders.json").read_text(encoding="utf-8"))


def total_orders(orders: list[int]) -> int:
    if any(amount < 0 for amount in orders):
        raise ValueError("Order amounts must be nonnegative")
    return sum(orders)

In the job entry point, give the reader's output and the next step's input the same name. The reader retries up to twice and reads the file on every run. The total can be reused when the order amounts match.

job.py
import sys

from flowyml import Pipeline, step
from orders import read_orders, total_orders


if __name__ == "__main__":
    read = step(outputs=["orders"], retry=2, cache=False)(read_orders)
    total = step(inputs=["orders"], outputs=["total"], cache="input_hash")(total_orders)
    job = Pipeline.from_steps(read, total, name="daily_orders")
    result = job.run(auto_start_ui=False)

    if not result.success:
        for outcome in result.step_results.values():
            if outcome.error:
                print(outcome.error, file=sys.stderr)
        raise SystemExit(1)

    print(result.outputs["total"])

Run python job.py from the directory containing all three files. It prints 25. Run it again to see the cache hit, or put a negative amount in the file to see the traceback in orders.py and an exit status of 1. Set cache=False on a step while debugging edits to its code so each run reaches your breakpoint.

The SDK writes run records and cached values under .flowyml/ by default. With auto_start_ui=False it skips starting the dashboard. Its worker monitor can still attempt to contact the configured FlowyML server.

Web UI & API Server

To inspect runs in a browser, start the included server from the job directory with flowyml ui start --open-browser.

Full installation with integrations

pip install "flowyml[all]"

The all extra includes the framework, provider, and GenAI extras listed in the package. Individual extras can be combined in one command, for example python -m pip install "flowyml[pytorch,azure]".


Optional Dependencies β€” Pick What You Need

For minimal installations or specific production setups, install only what you need:

ML Framework Support

# TensorFlow/Keras automatic tracking
pip install "flowyml[tensorflow]"

# PyTorch integration
pip install "flowyml[pytorch]"

# Standalone Keras integration or MLflow tracking
pip install "flowyml[keras]"
pip install "flowyml[mlflow]"

# Scikit-learn utilities
pip install "flowyml[sklearn]"

Use this when: You're building Docker images and want to minimize size, or you only use specific frameworks.

Cloud Platform Support

# Google Cloud Platform (Vertex AI, GCS, Container Registry)
pip install "flowyml[gcp]"

# AWS support (SageMaker, S3, ECR)
pip install "flowyml[aws]"

# SageMaker Python SDK plugins
pip install "flowyml[sagemaker]"

# Azure support (Azure ML, Blob Storage, ACR)
pip install "flowyml[azure]"

Use this when: You're deploying to cloud and want cloud-specific features like managed orchestration (Vertex AI), cloud storage (GCS/S3), and container registries.

Development

From a source checkout, install the SDK and its development tools.

poetry install --with dev

Combining Extras

You can combine multiple extras:

# TensorFlow + GCP
pip install "flowyml[tensorflow,gcp]"

# All ML frameworks + GCP
pip install "flowyml[tensorflow,pytorch,sklearn,gcp]"

# Everything including UI
pip install "flowyml[all]"

From Source

git clone https://github.com/UnicoLab/FlowyML.git
cd FlowyML
poetry install --only main
poetry run flowyml inspect examples/light_training.py:job

Use -E azure or -E all to add integrations. For editable Basic development with pip, use python -m pip install -e ./runtime -e .. To develop only the local runner, use python -m pip install -e ./runtime ./light.

Docker

# Basic image
docker pull flowyml/flowyml:latest

# With TensorFlow
docker pull flowyml/flowyml:latest-tf

# With PyTorch
docker pull flowyml/flowyml:latest-torch

# Full image
docker pull flowyml/flowyml:latest-full

Verification

Check the installed version in either edition.

python -m flowyml --version

Requirements by Use Case

Local Development

python -m pip install flowyml

ML Training (TensorFlow)

pip install "flowyml[tensorflow]"

ML Training (PyTorch)

pip install "flowyml[pytorch]"

Production on GCP

pip install "flowyml[gcp,tensorflow]"  # or pytorch

Full Development Setup From Source

poetry install --with dev -E all

Installation Best Practices πŸ’‘

Use Virtual Environments

Always use virtual environments to avoid dependency conflicts:

# Using venv (built-in)
python -m venv flowyml-env
source flowyml-env/bin/activate  # Windows: flowyml-env\Scripts\activate
python -m pip install flowyml

# Using conda
conda create -n flowyml python=3.10
conda activate flowyml
python -m pip install flowyml

Why this matters: Prevents conflicts with other Python projects and makes it easy to reproduce your environment.

Pin Versions in Production

For production deployments, pin exact versions:

# Generate requirements file
pip freeze > requirements.txt

# Or use Poetry (recommended)
pip install "flowyml[all]"
poetry lock

Why this matters: Ensures reproducible deployments and prevents surprise breakages from dependency updates.


Troubleshooting Common Issues

"Module not found" errors for optional features

Problem: You see ImportError or ModuleNotFoundError when using specific features.

Solution: Install the corresponding extra:

# For TensorFlow features
pip install "flowyml[tensorflow]"

# For GCP features
pip install "flowyml[gcp]"

# Or just install everything
pip install "flowyml[all]"

Dependency version conflicts

Problem: pip reports conflicts between FlowyML's dependencies and existing packages.

Solution: Create a fresh virtual environment:

# Deactivate current environment if active
deactivate

# Create new environment
python -m venv new-flowyml-env
source new-flowyml-env/bin/activate
pip install "flowyml[all]"

Python version too old

Problem: Installation fails with Python version errors.

Solution: Upgrade Python to 3.10 or higher:

# Check current version
python --version

# Using conda (recommended)
conda create -n flowyml python=3.10
conda activate flowyml

# Or use pyenv
pyenv install 3.10.0
pyenv local 3.10.0

GCP authentication issues

Problem: Can't access GCS or Vertex AI.

Solution: Authenticate with gcloud:

# Install gcloud CLI first: https://cloud.google.com/sdk/docs/install
gcloud auth login
gcloud auth application-default login
gcloud config set project YOUR-PROJECT-ID

Installation is slow

Problem: pip install takes a very long time.

Solution: Clear pip cache or use a faster mirror:

# Clear cache
pip cache purge

# Or upgrade pip/setuptools
pip install --upgrade pip setuptools wheel

# Then retry
pip install "flowyml[all]"

Next Steps

Once installed:

  1. Verify installation: Run flowyml --version to confirm
  2. Build your first pipeline: Follow the Getting Started guide
  3. Explore examples: Check out the Examples page for real-world patterns

Need help? Visit the Resources page for community support and troubleshooting guides.


πŸ“ What's Next?

πŸš€ Getting Started

Build your first pipeline in 5 minutes.

Quick Start β†’

🎒 Core Concepts

Learn Pipelines, Steps, Context, and Assets.

Core Concepts β†’

πŸ““ FlowyML Notebook

Try the reactive notebook companion.

Notebook β†’