Microsoft Windows


  1. Download and install Miniconda using the following instructions

  2. Open the Anaconda Prompt from the Start Menu 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

  2. Create a virtual environment in conda

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

    source activate cubeenv

    Find out more about managing virtual environments here

  4. Install other packages

    conda install jupyter matplotlib scipy

    Find out more about managing packages here

The Open Datacube package and it’s requirements are now installed. Use them by activating the cubeenv environment from the Anaconda Prompt.

conda activate cubenv

Manual Installation (Fallback)


Instructions given in this section have not been updated or tested recently. We strongly recommend using Conda based installation on Windows platforms.

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

Python 3 environment

1. Download and install a standard python release from . The Open Data Cube supports 3.8 or newer.


If in a restricted environment with no local administrator access, python can be installed by running:

msiexec /a python-3.8.4.msi TARGETDIR=C:\Python3

Or by launching the version 3.8 installer and selecting not to install for all users (only single user install).

  1. Ensure pip is installed:

    cd C:\Python3
    python -m ensurepip
  2. Upgrade and Install python virtualenv:

    python -m pip install --upgrade pip setuptools virtualenv
  3. Create an Open Data Cube virtualenv:

    mkdir C:\envs
    Scripts\virtualenv C:\envs\open_data_cube


3.5 only workaround: Copy vcruntime140.dll from Python install dir into virtualenv Scripts\ folder.

  1. Activate virtualenv:


The python virtual environment isolates this python installation from other python installations (which may be in use for other application software) to prevent conflicts between different python module versions.

Python modules

On windows systems by default there are no ready configured compilers, and so libraries needed for some python modules must be obtained in precompiled (binary) form.

Download and install binary wheels from

You will need to download at least:

  • GDAL

  • rasterio

  • numpy

  • netCDF4

  • psycopg2

  • numexpr

  • scipy

  • pandas

  • matplotlib

The following may also be useful:

  • lxml

  • pyzmq

  • udunits2

Install these packages by running in your Downloads directory:

pip install *.whl


It may be necessary to manually replace *.whl with the full filenames for each .whl file (unless using a unix-like shell instead of the standard windows command line console).


For 3.5 only

If there are problems loading libraries. Try:

copy site-packages/matplotlib/msvcp140.dll site-packages/osgeo/

Also, install the python notebook interface for working with datacube example notebooks:

pip install jupyter

Datacube installation

Obtain a current copy of the datacube source code from GitHub. A simple way is to extract into a subdirectory of the python environment.

Install the datacube module by running:

cd datacube-core-develop
python install

Extra instructions for installing Compliance Checker

pip install cf_units
  • Download and install udunits2 from gohlke

  • Edit site-packages/cf_units/etc/site.cfg with path to udunits2.dll which should be venv/share/udunits/udunits2.dll