Installation Guide#

Prerequisites#

For more information about the prerequisites for an installation of the HydroMT package and related dependencies, please visit the documentation of HydroMT core

Compared to HydroMT, HydroMT-Wflow has additional dependencies, namely:

If you already have a python & conda installation but do not yet have mamba installed, we recommend installing it into your base environment using:

$ conda install mamba -n base -c conda-forge

Installation#

HydroMT-Wflow is available from pypi and conda-forge. We recommend installing using mamba from conda-forge in a new environment.

Note

In the commands below you can exchange mamba for conda, see here for the difference between both.

Install HydroMT-Wflow in a new environment#

Tip

This is our recommended way of installing HydroMT-Wflow!

You can install HydroMT-Wflow in a new environment called hydromt-wflow:

$ mamba create -n hydromt-wflow -c conda-forge hydromt_wflow

Then, activate the environment (as stated by mamba/conda) to start making use of HydroMT-Wflow: HydroMT-Wflow will be installed together with all optional (see above) and a few additional dependencies with:

$ conda activate hydromt-wflow

Tip

If you already have this environment with this name either remove it with conda env remove -n hydromt-wflow or set a new name for the environment by changing -n <name> to the name of your new environment.

Note

Please take into account that gwwapi or hydroengine packages are not available from conda and therefore have to be installed from pypi separately (in the activated environment).

$ pip install gwwapi
$ pip install hydroengine

Install HydroMT-Wflow in an existing environment#

To install HydroMT-Wflow in an existing environment execute the command below where you replace <environment_name> with the name of the existing environment. Note that if some dependencies are not installed from conda-forge but from other channels the installation may fail.

$ mamba install -c conda-forge hydromt_wflow -n <environment_name>

Note

Please take into account that gwwapi or hydroengine packages are not available from conda and therefore have to be installed from pypi separately.

$ conda activate <environment_name>
$ pip install gwwapi
$ pip install hydroengine

Developer install#

To be able to test and develop the HydroMT-Wflow package see instructions in the Developer installation guide.