Installing OpenDrift

Alternative 2: Using Miniconda

  1. Install miniconda3

  2. Set up a Python 3 environment for opendrift

$ conda config --add channels conda-forge  # recommended, but not necessary
$ conda create -n opendrift python=3
$ conda activate opendrift
  1. Install OpenDrift and dependencies

$ conda install -c opendrift -c conda-forge -c noaa-orr-erd opendrift

If you later want to edit the OpenDrift source code, or be able to update from repository with git pull, the following two steps are necessary. This yields the same as Alternative 1.

  1. Clone OpenDrift:

$ git clone https://github.com/OpenDrift/opendrift.git
$ cd opendrift/
  1. Install as editable:

$ pip install -e .