Mac OS X¶
Download and install Miniconda using the following instructions https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html
Open Terminal to execute the following commands.
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/
Create a virtual environment in conda
conda create --name cubeenv python=3.8 datacube
Activate the virtual environment
source activate cubeenv
Find out more about managing virtual environments here https://conda.io/docs/using/envs.html
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.
/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.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
Usage of Docker and if not then Python virtual environments is recommended.