Installation

The EnMAP-Box is a plugin for QGIS and requires additional python packages that need to be installed independent from QGIS.

../_images/install.png

1. Install QGIS

Install QGIS version 3.16 or higher to run the EnMAP-Box. You can get QGIS here. Additional information on the installation process is provided in the QGIS Documentation.

In case you already have QGIS installed, you can skip this step.

MacOS

Before you can install QGIS from the downloaded disk image qgis-macos-pr.dmg, you need to allow your macOS to install it:

  1. Open System Preferences > Security & Privacy
  2. Unlock the page to make changes.
  3. Enable “Allow apps downloaded from”: “Anywhere”
../_images/install_qgis1.png

Now open the disk image (double click) and copy the QGIS.app to your applications folder

../_images/install_qgis2.png

2. Install required python packages

The EnMAP-Box core plugin requires several python packages:

In the following we demonstrate two variants for installing the required Python packages:

2.1 Package Installer

The EnMAP-Box includes a Package Installer that offers a more or less one-click solution to install required python packages. It can be accessed from the menu bar via Project ‣ Package Installer.

If you start the EnMAP-Box for the first time, you may see a warning. The Package Installer can also be opened by clicking Install Missing.

../_images/warning_missing_packages.png

Use the Yes to All button to install all required python packages. Per default, this will install packages using pip into the user directory (as this does not require admin rights). It is also possible to install/update packages individually via the context menu inside the package list.

../_images/package_installer.png

It might be necessary to restart QGIS and the EnMAP-Box.

2.2 Command-line

In case the Package Installer does not work for you or you do not want to use it, try installing the packages from the command-line. This variant may be more reliable. See OS specific instructions below:

Windows

  1. Close QGIS, if it is open.

  2. Run the OSGeo4W Shell as administrator (!!!). A convenient way to access the OSGeo4W Shell is from the start menu. Depending on the installation method you used to install QGIS, the shortcut will be listed under QGIS 3.xx (standalone installer) or OSGeo4W (network installer)

    Hold Ctrl + Shift and click on the OSGeo4W Shell entry (or right-click and choose Run as administrator)

    ../_images/windows_start_osgeo.png
  3. Activate the Python 3 environment by entering:

    py3_env
    
    ../_images/shell_callpy3env.png
  4. Install required python packages by entering:

    pip3 install -r https://bitbucket.org/hu-geomatics/enmap-box/raw/develop/requirements.txt
    

    Now all packages will be installed automatically. After completion, the shell should show something like this:

    ../_images/shell_install_output.png

    If the package installation was successful, you can close the shell. The required packages are installed now and you can continue to start/install the EnMAP-Box.

    Error

    In case you run into problems because pip is not available in your python environment (error message C:/.../python3.exe: No module named pip or similar), follow these steps…


Linux

  1. Close QGIS, if it is open.

  2. Open the terminal and install all missing packages using pip:

    pip3 install -r https://bitbucket.org/hu-geomatics/enmap-box/raw/develop/requirements.txt
    

Mac

Most packages required by the EnMAP-Box, like scikit-learn, are already a part of the QGIS.app environment.

Since QGIS 3.16, the packaging mechanism, allows to install additional package with pip as followed:

/Applications/QGIS.app/Contents/MacOS/bin/pip3 install astropy

/Applications/QGIS.app/Contents/MacOS/bin/pip3 install -r https://bitbucket.org/hu-geomatics/enmap-box/raw/develop/requirements.txt

Error

See FAQ if you run into problems installing the packages.


3. Install or update the EnMAP-Box

Install from QGIS plugin repository

  1. Open QGIS and go to Plugins ‣ Manage and Install Plugins ‣ All

  2. In the search bar enter enmap or EnMAP-Box 3

  3. Now the EnMAP-Box should be listed in the plugin list:

    ../_images/pluginmanager_all.PNG

    Select it and click Install plugin (or Upgrade in case you update to a new version)

  4. Start the EnMAP-Box via the icon icon or from the menubar Raster ‣ EnMAP-Box

  5. (Optional): You can download a test/demo dataset via Project ‣ Load Example Data

Experimental version

It is also possible to install the most recent develop version of the EnMAP-Box. To do so, make sure that the option cb1 Show also experimental plugins is activated in the plugin manager settings. Once activated, there is an additional button Install Experimental Plugin in the plugin manager.

../_images/experimental_install.png

Warning

As the experimental tag suggests, this version comes with the newest features and developments, but might also be prone to bugs and crashes.

Install older version

  1. Go to the QGIS Python Plugins Repository https://plugins.qgis.org/plugins/enmapboxplugin/
  2. Click on the Versions tab to see all available version.
  3. Click on the desired version and on the next page click download
  4. It is recommended to uninstall previous EnMAP-Box versions (delete folder manually, or in QGIS via Plugins ‣ Manage and Install Plugins ‣ Installed ‣ EnMAP-Box 3 ‣ Uninstall plugin)
  5. Open Plugins ‣ Manage and Install Plugins ‣ Install from ZIP.
  6. Press and select the downloaded zip file (enmapboxplugin.3.x.YYYYMMDDTHHMM.QGIS3.zip) and click Install plugin.
  7. Start the EnMAP-Box via the icon icon or from the menubar Raster ‣ EnMAP-Box.