Installation¶
Requirements¶
hydroutils requires Python 3.8 or higher. The package has been tested on:
- Python 3.8, 3.9, 3.10, 3.11
- Windows, macOS, and Linux
Core Dependencies¶
The following packages are automatically installed:
numpy- Array operations and mathematical functionspandas- Data manipulation and analysisscipy- Scientific computingmatplotlib- Plotting and visualizationxarray- Labeled multi-dimensional arraysnetCDF4- NetCDF file handlingHydroErr- Hydrological error metrics
Optional Dependencies¶
For extended functionality:
boto3- AWS S3 integration (for cloud features)jupyter- For notebook examples
Installation Methods¶
1. Stable Release (Recommended)¶
Install the latest stable release from PyPI:
1 | |
This is the preferred method as it installs the most recent stable release with all dependencies.
2. Development Version¶
For the latest features and bug fixes, install from GitHub:
1 | |
3. From Source¶
If you want to contribute or modify the code:
1 2 3 4 5 6 | |
4. With Optional Dependencies¶
To install with all optional dependencies:
1 | |
Or install specific optional dependencies:
1 2 3 | |
Virtual Environment Setup¶
We recommend using a virtual environment to avoid dependency conflicts:
Using conda¶
1 2 3 4 5 6 | |
Using venv¶
1 2 3 4 5 6 7 8 9 10 11 | |
Verification¶
Test your installation:
1 2 3 4 5 6 7 8 9 | |
Troubleshooting¶
Common Issues¶
-
Import Error: Make sure all dependencies are installed:
1pip install --upgrade hydroutils -
Permission Denied: Use
--userflag:1pip install --user hydroutils -
SSL Certificate Error: Try with trusted hosts:
1pip install --trusted-host pypi.org --trusted-host pypi.python.org hydroutils
Platform-Specific Notes¶
Windows Users: - Consider using Anaconda for easier scientific package management - Some dependencies may require Visual C++ Build Tools
macOS Users: - Xcode command line tools may be required for some dependencies - Use Homebrew to install system-level dependencies if needed
Linux Users: - Install system dependencies for scientific packages:
1 2 3 4 5 | |
Getting Help¶
If you encounter any installation issues:
- Check the FAQ for common solutions
- Search existing issues
- Create a new issue with:
- Your operating system and Python version
- Complete error message
- Steps to reproduce the problem