User Tools

Site Tools


research:root

Installing ROOT using a python virtual environment

Sign in to LENGAU and then ssh to dtn

Ensure that your base conda environment has been initialised for your user on LENGAU. If it has already been initialized you should observe (base) alongside your user ID. This means that .bashrc file has been modified to incorporate conda directives. If not start here: https://wiki.chpc.ac.za/guide:python?s[]=%2Apython%2A

Sanitize your shell environment and then load the BIOMODULES module:

module purge
module add chpc/BIOMODULES

Here is how you create a new environment with ROOT preinstalled:

conda create -n root_env root -c conda-forge

This will make a new environment called root_env, and install ROOT into it. Installation times may vary. When I did it it took between 3-5 minutes…

When the installation completes successfully, you can list all your environments and their paths using:

conda info --envs

The full path to the root installation amongst others will appear.

Check whether the ROOT package has been installed, if successfully installed, it should appear in the list of packages:

conda list

Activate the conda ROOT environment:

conda activate root_env

Launch ROOT:

root

Deactivate the environment when done using:

conda deactivate
/app/dokuwiki/data/pages/research/root.txt · Last modified: 2024/10/28 07:12 by msovara