Installation

You can install CaliBrain using either pip or Conda, depending on your preferences.

We provide the following installation options:

  • pyproject.toml: Standard modern pip-based installation (recommended).

  • requirements.txt: Simple pip-based installation (optional).

  • environment.yml: Conda-based environment installation (optional).

Choose the method that best fits your workflow.



Simple Pip Installation via requirements.txt

Alternatively, you can install CaliBrain using a traditional requirements.txt:

pip install -r requirements.txt
Note:
  • This method is simpler but does not capture full metadata (e.g., Python version compatibility).

  • Make sure your environment uses a supported Python version (>=3.8).


Conda Installation

If you prefer to manage dependencies with Conda, you can create an isolated Conda environment using the provided environment.yml file.

First, clone the repository:

git clone https://github.com/braindatalab/CaliBrain.git
cd CaliBrain

Then create the environment:

conda env create -f environment.yml

Activate the environment:

conda activate calibrain

Finally, install CaliBrain into the activated environment:

pip install .

This ensures that all Conda and pip dependencies are properly installed.


Which method should I use?

  • Recommended: Use pip with pyproject.toml for clean dependency management (pip install .).

  • If you prefer Conda: Use environment.yml to create a Conda environment first.

  • If you just want quick pip install: Use requirements.txt.

All methods lead to the same installed package — just choose the method that matches your ecosystem (pip-only or Conda).


Minimum Requirements

  • Python >= 3.8

  • Tested on Python 3.8, 3.9, 3.10

  • Operating systems: Linux, macOS, Windows (WSL recommended for full compatibility)


Optional Setup for Development

If you plan to contribute to CaliBrain or run experiments:

pip install -e .[dev]

(Development dependencies will be added soon.)