Mac OS X

Miniconda

  1. Download and install Miniconda using the following instructions https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html

  2. Open Terminal to execute the following commands.

  1. Add the conda-forge channel

    conda config --add channels conda-forge
    

    The conda-forge channel provides multitude of community maintained packages. Find out more about it here https://conda-forge.org/

  2. Create a virtual environment in conda

    conda create --name cubeenv python=3.6 datacube
    
  3. Activate the virtual environment

    source activate cubeenv
    

    Find out more about managing virtual environments here https://conda.io/docs/using/envs.html

  4. Install other packages

    conda install jupyter matplotlib scipy
    

    Find out more about managing packages here https://conda.io/docs/using/pkgs.html

Datacube is now installed and can be used in Terminal by activating the cubeenv environment.

Manual Installation (Fallback)

Only follow these steps if the Miniconda installation does not suit your needs.

Required software

Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

HDF5, netCDF4, and GDAL:

brew install hdf5 netcdf gdal postgres

Python and packages

Python 3.6+ is required (3.8 is recommended)

Install the latest version of the ODC from PyPI:

pip install -U

‘pyproj==2.*’ ‘datacube[all]’ –no-binary=rasterio,pyproj,shapely,fiona,psycopg2,netCDF4,h5py

Note

Usage of Docker and if not then Python virtual environments is recommended.