Installation¶
The marine_qc toolbox is a pure Python package, but it has a few dependencies that rely in a specific python and module version.
If you don’t have pip installed, this Python installation guide can guide you through the process.
Stable release¶
To install the marine_qc toolbox in your current environment, run this command in your terminal:
python -m pip install marine_qc
This is the preferred method to install the marine_qc toolbox, as it will always install the most recent stable release.
Alternatively, it can be installed using the uv package manager:
python -m uv add marine_qc
From source¶
Warning
It is not guaranteed that the version on source will run stably. Therefore, we highly recommend to use the Stable release installation.
The source for the marine_qc can be downloaded from the GitHub repository via git.
Download the source code from the Github repository using one of the following methods:
Clone the public repository:
git clone git@github.com:glamod/marine_qc.gitDownload the tarball:
curl -OJL https://github.com/glamod/marine_qc/tarball/main
Once you have a copy of the source, you can install it with pip:
python -m pip install -e .
Or using the uv package manager to install marine_qc:
python -m uv add .
Development mode¶
If you’re interested in participating in the development of the marine_qc toolbox, you can install the package in development mode after cloning the repository from source:
python -m pip install -e .[dev] # Install optional development dependencies in addition
python -m pip install -e .[docs] # Install optional dependencies for the documentation in addition
python -m pip install -e .[all] # Install all the above for complete dependency version
Alternatively, you can use the uv package manager:
uv sync # Install in development mode and create a virtual environment
You can specify optional dependency groups with the –extra option.
Creating a Conda Environment¶
To create a conda environment including marine_qc’s dependencies and and development dependencies, run the following command from within your cloned repo:
$ conda env create -n my_qc_env python=3.12 --file=environment.yml
$ conda activate my_qc_env
(my_qc_env) $ make dev