Skip to content

Installation

Python version >=3.10 is required to install MOTrainer.

MOTrainer can be installed from PyPI:

pip install motrainer

or from the source:

git clone git@github.com:VegeWaterDynamics/motrainer.git
cd motrainer
pip install .

Tips

We strongly recommend installing separately from your default Python envrionment. E.g. you can use enviroment manager e.g. mamba to create separate environment.

Troubleshooting

Error: Could not build wheels for h5py

MOTrainer requires h5py for installation. Usually your Python dependency manager should hamdle the installation of h5py automatically. However, the following error may occur when installing h5py:

ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based project

On Ubuntu system, this can be resolved by installing the libhdf5-dev package:

sudo apt-get install libhdf5-dev

On MacOS, h5py can be installed via Homebrew, Macports, or Fink. See the installation guide of h5py

According to the installation guide of h5py there is no Windows-specific package managers include h5py. Therefore, it is recommended to install h5py on Windows via Python Distributions such asconda.

conda install h5py