Skip to content

Commit

Permalink
Add macOS installation to readme.md
Browse files Browse the repository at this point in the history
Successfully tested with macOS 10.13.6 (High Sierra) and 10.15.5 (Catalina), QGIS 3.10.
Solution from this comment: nkarasiak#15 (comment).
Not sure if restart is actually required.
In macOS High Sierra, QGIS was not responidng during the classifiation but still succeeded.
  • Loading branch information
n103 committed Jun 16, 2020
1 parent 7929567 commit 6948baf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6948baf

Please sign in to comment.