Installation#

Requirements#

PyFlowReg requires Python 3.10 or higher.

Installation via pip#

The recommended installation method is via pip:

pip install pyflowreg

With Visualization Support#

To install with full visualization support (matplotlib, scikit-learn):

pip install pyflowreg[vis]

Session Processing Support#

Session processing support is included in the base install. The session CLI pyflowreg-session is installed with pip install pyflowreg.

Complete Installation#

For all optional features (visualization, cluster computing, and GPU backends):

pip install pyflowreg[vis,dask,gpu]

For Development#

To install in development mode with test dependencies:

git clone https://github.com/FlowRegSuite/pyflowreg.git
cd pyflowreg
pip install -e .[test,vis,docs]

Platform-Specific Notes#

Windows#

On Windows, MDF file support (Sutter file format) requires additional dependencies:

pip install pywin32

This is automatically installed when using pip install pyflowreg on Windows.

Using Mamba#

Create a dedicated environment with mamba:

mamba create --name pyflowreg python=3.10
mamba activate pyflowreg
pip install pyflowreg

Verifying Installation#

Test your installation:

import pyflowreg
from pyflowreg.motion_correction import OFOptions
from pyflowreg.session import SessionConfig
print(pyflowreg.__version__)

Verify command-line tools:

# Check session CLI is installed
pyflowreg-session --help