.. _installation_mac: *********************** macOS *********************** .. _QGIS_installation_mac: QGIS download and installation ------------------------------ * Download the latest QGIS version from `here `_ ; * Execute the QGIS installer with administrative rights, accepting the default configuration. Now, QGIS is installed. .. image:: _static/installation/QGIS.jpg .. _installation_dependencies_mac: Installation of required dependencies ------------------------------------------------- The Semi-Automatic Classification Plugin requires Remotior Sensus, GDAL, NumPy and SciPy for most functionalities. Optionally, scikit-learn and PyTorch are required for machine learning. Therefore, we need to install the dependencies that are not included in the QGIS installation. * Close QGIS; * Open the terminal (administrative rights may be required); * Type the following command (you may need to adapt the path `/Applications/QGIS.app` to the actual QGIS installation directory): .. code-block:: bash /Applications/QGIS.app/Contents/MacOS/bin/pip3 install --upgrade remotior-sensus scikit-learn torch or in case you installed QGIS LTR: .. code-block:: bash /Applications/QGIS-LTR.app/Contents/MacOS/bin/pip3 install --upgrade remotior-sensus scikit-learn torch .. tip:: In case of error messages such as scikit-learn is already installed, you can just run ``/Applications/QGIS.app/Contents/MacOS/bin/pip3 install --upgrade remotior-sensus`` Follow the same procedure for updating the dependencies. .. tip:: In case of installation issues, one may follow the :ref:`plugin_installation_4`. .. _plugin_installation_mac: Semi-Automatic Classification Plugin installation --------------------------------------------------- * Run QGIS; * From the main menu, select ``Plugins`` > ``Manage and Install Plugins``; .. image:: _static/installation/install.jpg * From the menu ``All``, select the Semi-Automatic Classification Plugin and click the button ``Install plugin``; .. image:: _static/installation/plugins.jpg * The SCP should be automatically activated; however, be sure that the Semi-Automatic Classification Plugin is checked in the menu ``Installed`` (the restart of QGIS could be necessary to complete the SCP installation); .. image:: _static/installation/plugins_installed.jpg .. _plugin_configuration_mac: Configuration of the plugin --------------------------- Now, the Semi-Automatic Classification Plugin is installed and a dock and a toolbar should be added to QGIS. Also, a SCP menu is available in the Menu Bar of QGIS. It is possible to move the toolbar and the dock according to your needs, as in the following image. .. image:: _static/installation/SemiAutomaticClassificationPlugin.jpg .. |settings_tool| image:: _static/semiautomaticclassificationplugin_settings_tool.png :width: 20pt The configuration of available RAM is recommended in order to reduce the processing time. From the :ref:`SCP_menu` select |settings_tool| ``Settings > Processing`` . .. image:: _static/installation/settings_processing.jpg In the :ref:`settings_tab`, set the ``Available RAM (MB)`` to a value that should be half of the system RAM. For instance, if your system has 2GB of RAM, set the value to 1024MB. .. image:: _static/interface/settings_processing_tab.png .. _installation_update_mac: Update of required dependencies ------------------------------------------------- The dependency Remotior Sensus is frequently updated. The Semi-Automatic Classification Plugin can check automatically if a new version is available, and display a message in the :ref:`scp_dock`. .. image:: _static/installation/remotior_sensus_update.png It is recommended to close QGIS and update Remotior Sensus following the same installation steps described in :ref:`installation_dependencies_mac` .