Installation¶
Setting Up Your Development Environment¶
To get started with using canari-ml, you will need to have Python set-up on your system. This guide walks you through creating either a Mamba/Conda environment or a virtual environment using venv, and installing the latest development versions of the codebase directly from Git. In future, this will be directly installable via pip.
Creating a Virtual Python Environment¶
Using Mamba/Conda¶
-
Install Miniforge3 (if not already installed):
Follow instructions for your system from the official Miniforge3 GitHub page.
-
Create and activate a new environment:
You can replace the
mambacommand withcondaif you prefer.
Using Python's venv¶
-
Create a virtual environment:
This requires Python to already be installed on your system. You could use the Python installed by the OS, by MiniForge, or any other approach. -
Activate the virtual environment:
Installing Canari-ML from Git¶
Install latest default branch directly using pip¶
To install a specific tagged version:
(Optional) Create local clone for development¶
-
Clone the repository:
To specify the branch to clone:
-
Install in development mode (editable installation):
To install for local development, including documentation:
-
Optional: For development, set up Git pre-commit hooks:
Run
pre-commitonce to set up the hook to run each time a commit is attempted:
Next Steps¶
After setting up your environment, you can proceed with downloading source ERA5 data.