Installing from PyPI#

MOABB can be installed via pip from PyPI.

Warning

MOABB is only compatible with Python 3.8, 3.9, 3.10 and 3.11.

Note

We recommend the most updated version of pip to install from PyPI.

Below are the installation commands for the most common use cases.

pip install bash

MOABB can also be installed with sets of optional dependencies to enable the deep learning modules, the tracker of the carbon emission module or the documentation environment.

For example, to install all the optional dependencies.

pip install moabb[deepleaning, carbonemission, docs]

If you install the deep learning submodule using the pip, the installation commands above usually install a CPU variant of PyTorch or Tensorflow.

To use the potential of the deep learning modules (TensorFlow or PyTorch) with GPU, we recommend the following sequence before installing the moabb with dependencies:

  1. Install the latest NVIDIA driver.

  2. Check PyTorch Official Guide or TensorFlow Official Guide, for the recommended CUDA versions. For the Pip package, the user must download the CUDA manually, install it on the system, and ensure CUDA_PATH is appropriately set and working!

  3. Continue to follow the guide and install PyTorch or TensorFlow.

  4. Install moabb using one of the ways with the dependency parameter `[deeplearning].

See Troubleshooting section if you have a problem.