Installation¶
User install¶
HydroMT is available from pypi and conda-forge, but we recommend installing with conda. It is the same for the wflow plugin.
To install HydroMT wflow plugin using conda do:
$ conda install hydromt_wflow -c conda-forge
This will automatically install both HydroMT core library and dependencies as well as the model plugin.
You can also install hydromt_wflow using pip:
$ pip install hydromt_wflow
Developper install¶
If you want to download the wflow plugin directly from git to easily have access to the latest developments or make changes to the code you can use the following steps.
First, clone hydromt’s wflow plugin git repo from
github, then navigate into the
the code folder (where the envs folder and pyproject.toml are located):
$ git clone https://github.com/Deltares/hydromt_wflow.git
$ cd hydromt_wflow
Then, make and activate a new hydromt-wflow conda environment based on the envs/hydromt-wflow.yml file contained in the repository:
$ conda env create -f envs/hydromt-wflow.yml
$ conda activate hydromt-wflow
Finally, build and install hydromt_wflow using pip.
$ pip install .
If you wish to make changes in hydromt_wflow, then you should make an editable install of hydromt. This is possible using the flit package and install command.
For Windows:
$ flit install --pth-file
For Linux:
$ flit install -s
For more information about how to contribute, see HydroMT contributing guidelines.