Installation#

Dependencies#

  • mne (>=1.6)

  • numpy (>=1.21)

  • scipy (>=1.4.0)

  • xarray (>=2023.11.0)

  • joblib (>=1.0.0, optional)

  • pandas (>=1.3.2)

  • netCDF4 (>=1.6.5)

  • matplotlib (optional, for using the interactive data inspector)

We require that you use Python 3.9 or higher. You may choose to install mne-connectivity via pip, or conda.

Installation via Conda#

To install MNE-Connectivity using conda in a virtual environment, simply run the following at the root of the repository:

# with python>=3.9 at least
conda create -n mne
conda activate mne
conda install -c conda-forge mne-connectivity

Installation via Pip#

To install MNE-Connectivity including all dependencies required to use all features, simply run the following at the root of the repository:

python -m venv .venv
pip install -U mne-connectivity

If you want to install a snapshot of the current development version, run:

pip install --user -U https://api.github.com/repos/mne-tools/mne-connectivity/zipball/main

To check if everything worked fine, the following command should not give any error messages:

python -c 'import mne_connectivity'

MNE-Connectivity works best with the latest stable release of MNE-Python. To ensure MNE-Python is up-to-date, run:

pip install --user -U mne