-
Notifications
You must be signed in to change notification settings - Fork 2
Installation tutorial
Clotilde Augros edited this page Jun 4, 2026
·
30 revisions
OPERADAR requires Python 3.12 and must be installed in an isolated virtual environment.
This guide provides copy-paste safe, step-by-step instructions
-
Python 3.12 (verify with
python3 --version) - venv (included with Python)
- Git
- For HPC at Météo France (belenos), add in the
.gitconfigfile :
[http]
sslVerify = false-
For belenos only
module load python/3.12.12
-
Create a directory for virtual environments (safe to re-run):
mkdir -p $HOME/virtual_envs cd $HOME/virtual_envs
-
Create the virtual environment:
python3 -m venv operadar_env
-
Activate the environment:
source operadar_env/bin/activate -
Verify the activation (it should point to
.../operadar_env/bin/python):which python
-
Upgrade packaging tools:
pip install -U pip setuptools wheel build
-
Clone the repository:
cd $HOME git clone https://github.com/UMR-CNRM/operadar.git cd operadar
-
Install OPERADAR in editable mode (changes to source code are immediately active):
pip install --prefer-binary -e . -
Verify the installation:
python -c "import operadar; print('OPERADAR imported successfully')" -
Deactivate when finished (optional):
deactivate
To verify your installation in a new terminal later:
-
Activate your environment (choose the one you used):
source $HOME/virtual_envs/operadar_env/bin/activate
-
Test the import:
python -c "import operadar; print(operadar.__file__)"
-
Editable install (
-e .): This installs OPERADAR in development mode, so changes to the source code take effect immediately without needing to reinstall.
See the Execution Guide for detailed usage instructions.