Installation
This guide provides instructions for installing Rompy for different use cases.
Prerequisites
Before installing Rompy, ensure you have:
- Python 3.10 or higher
- pip package manager
- Git (for installation from source)
System-specific Requirements
Linux/macOS
- Standard Unix-like environment with bash shell
- Development tools (gcc, make) for building C extensions
Windows
- Windows 10 or higher
- Windows Subsystem for Linux (WSL) recommended for full functionality
- Visual Studio Build Tools or equivalent for building C extensions
Installation Scenarios
Basic Installation
For basic usage and to try out the library:
Development Installation
For contributing to the project or modifying the code:
This installs Rompy in editable mode along with development dependencies.
Production Installation
For production deployments:
Optional Dependencies
Rompy includes several optional dependencies for specific functionality:
extra: Additional dependencies for cloud storage (gcsfs, zarr, cloudpathlib)test: Dependencies for running tests (pytest, envyaml, coverage)dev: Development dependencies (pytest, ruff, black)docs: Dependencies for building documentation (mkdocs, mkdocstrings)
Install with optional dependencies:
Virtual Environment (Recommended)
We strongly recommend using a virtual environment:
# Create a virtual environment
python -m venv rompy_env
# Activate the environment
# On Linux/macOS:
source rompy_env/bin/activate
# On Windows:
rompy_env\Scripts\activate
# Install Rompy
pip install rompy
Troubleshooting
Installation Issues
If you encounter issues during installation:
-
Permission errors: Use a virtual environment or install with the
--userflag: -
Dependency conflicts: Create a fresh virtual environment for Rompy:
-
Compilation errors: Ensure you have the required system dependencies:
- Linux: gcc, g++, make, python3-dev
- macOS: Xcode command line tools
- Windows: Visual Studio Build Tools
Upgrade Existing Installation
To upgrade to the latest version:
Verification
To verify your installation, try importing Rompy:
Next Steps
- Go to the Quickstart Guide to begin using Rompy
- Check the Examples for practical use cases
- Review the Core Concepts to understand the architecture