Skip to content

Installation

Jorge edited this page Jan 8, 2022 · 1 revision

Installation

The BGC library has the following dependencies:

Let's go step by step:

The code

Clone this repository into your machine:

git https://gitlab.com/jorgenavarrom/BGC_lib.git

Conda

The easiest way to install all dependencies is through conda. On a Linux-based system, this would be as simple as:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh

and following instructions.

Create an environment with all requirements

Once conda is installed, let's create a virtual environment with all dependencies. Enter the folder with the BGC lib project and do

conda env create --file environment.yml

To activate the environment, do conda activate bgclib (and to deactivate the environment, conda deactivate)

Make BGClib available within the environment

If you are running BGCtoolkit from the BGC_lib folder, this step is optional.

With the bgclib environment activated, go to the BGC_lib project folder and do python setup.py install.

Clone this wiki locally