spotpy is a Python library for statistical parameter optimization, calibration, and sensitivity analysis of environmental models. It provides a range of algorithms including Monte Carlo, Markov chain Monte Carlo (MCMC), Shuffled Complex Evolution (SCE-UA), DREAM, and various sensitivity analysis methods like FAST and Morris. Current version: 1.6.7. Release cadence is irregular, with several minor releases in recent years.
pip install spotpyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Monte Carlo sampling using spotpy with a built-in example setup (HYMOD model).
Update pip and setuptools: pip install --upgrade pip setuptools. Or use 'pip install -e . --no-use-pep517' if needed.
Upgrade to Python 3.10 or higher.
Set random_state to an integer, e.g., sampler = spotpy.algorithms.dream(..., random_state=42).
Use: from spotpy.examples.spotpy_setup_hymod import spotpy_setup as setup
Import spotpy first, then use spotpy.algorithms.mc(...) or from spotpy.algorithms import mc
Use lowercase: dbformat='csv'