From 6948baf5dbbbf3b7f244cf9b6e04081eb41065e1 Mon Sep 17 00:00:00 2001 From: n103 <47967203+n103@users.noreply.github.com> Date: Tue, 16 Jun 2020 14:26:25 +0200 Subject: [PATCH] Add macOS installation to readme.md Successfully tested with macOS 10.13.6 (High Sierra) and 10.15.5 (Catalina), QGIS 3.10. Solution from this comment: https://github.com/nkarasiak/dzetsaka/issues/15#issuecomment-477494992. Not sure if restart is actually required. In macOS High Sierra, QGIS was not responidng during the classifiation but still succeeded. --- readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/readme.md b/readme.md index b69459b..683bb88 100644 --- a/readme.md +++ b/readme.md @@ -44,6 +44,15 @@ If you do not have pip installed, open osgeo4w-setup-x86_64.exe, select Advanced You can now use **Random Forest**, **SVM**, or **KNN** ! +### On macOS +Open [Plugins ‣ Python Console](https://docs.qgis.org/2.18/en/docs/user_manual/plugins/python_console.html), then: + +`from pip._internal import main as pip` + +`pip(['install', '--user', 'scikit-learn'])` + +Restart QGIS. + ## Tips - If your raster is *spot6scene.tif*, you can create your mask under the name *spot6scene_mask.tif* and the script will detect it automatically.