Installation Guide¶
Requirements¶
- Python >= 3.10
- PyTorch >= 2.0
- CUDA (optional, for GPU acceleration)
Stable Release¶
The recommended way to install the latest stable version is using pip:
1 | |
or with uv (faster):
1 | |
Development Version¶
For the latest development version, install directly from the repository. We recommend uv for environment management:
1 2 3 | |
Sister packages.
hydrodataset,hydrodatasource, andhydroutilsare configured as editable local dependencies inpyproject.toml. For local development they must be cloned into sibling directories (../hydrodataset,../hydrodatasource,../hydroutils). When installing from PyPI, released versions are used instead.
Configure Data Path¶
Before running any example, create a hydro_setting.yml file in your user home directory (C:\Users\YourUsername on Windows, ~/ on Linux/macOS) pointing to your data folders:
1 2 3 4 5 | |
Standard dataset paths (e.g., CAMELS-US) are resolved automatically from storage.local.root by the unified data resolver — no per-dataset path configuration is needed.
Verify Installation¶
After installation, you can verify it by running the following code in your Python environment:
1 2 | |