.. _installation_guide: ================== 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: - `toml `_ - `pcraster `_ (optional) - `gwwapi `_ (optional) - `hydroengine `_ (optional) If you already have a python & conda installation but do not yet have mamba installed, we recommend installing it into your *base* environment using: .. code-block:: console $ 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`: .. code-block:: console $ 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: .. code-block:: console $ 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 ` 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). .. code-block:: console $ 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 `` 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. .. code-block:: console $ mamba install -c conda-forge hydromt_wflow -n .. Note:: Please take into account that gwwapi or hydroengine packages are not available from conda and therefore have to be installed from pypi separately. .. code-block:: console $ conda activate $ pip install gwwapi $ pip install hydroengine Developer install ================== To be able to test and develop the HydroMT-Wflow package see instructions in the :ref:`Developer installation guide `.