Cannot install EnMap boc Mac OSX 10.14.6
I’ve become very frustrated. I cannot install Enmap box. Sklearn is installed on my computer. When I run the command as instructed below, I get a bunch of Python errors. Should I just give up and not try EnMap box?
ERROR”
Couldn't load plugin 'enmapboxplugin' due to an error when calling its classFactory() method
Exception: The following 1 package(s) are not installed:
- sklearn
Please follow the installation guide https://enmap-box.readthedocs.io/en/latest/usr_section/usr_installation.html#install-required-python-packages
and install missing packages, e.g. with pip:
\$ python3 -m pip install -r /Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/requirements.txt
Traceback (most recent call last):
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/init.py", line 47, in classFactory
raise ex
File "/Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/init.py", line 43, in classFactory
plugin = EnMAPBoxPlugin(iface)
File "/Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/enmapboxplugin.py", line 50, in init
self.initialDependencyCheck()
File "/Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/enmapboxplugin.py", line 69, in initialDependencyCheck
raise Exception(missingPackageInfo(missing))
Exception: The following 1 package(s) are not installed:
- sklearn
Please follow the installation guide https://enmap-box.readthedocs.io/en/latest/usr_section/usr_installation.html#install-required-python-packages
and install missing packages, e.g. with pip:
$ python3 -m pip install -r /Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/requirements.txt
Python version: 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)]
QGIS version: 3.10.2-A Coruña A Coruña, 616ad4531b
Python Path:
• /Applications/QGIS3.10.app/Contents/MacOS/../Resources/python
• /Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python
• /Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins
• /Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/plugins
• /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/geos
• /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload
• /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages
• /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip
• /Users/ptownsend/Library/Python/3.7/lib/python/site-packages
• /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7
• /Applications/QGIS3.10.app/Contents/Resources/python
• /Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python
• /Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/site-packages
/Users/ptownsend/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox
Comments (5)
-
-
- changed status to open
-
@ptownsend have you been able to install scitkit-learn to your macOS QGIS python?
-
- changed status to on hold
-
- changed status to closed
missing feedback
- Log in to comment
The scikit-learn that you installed is probably not available to your QGIS Python. Can you import scikit learn within the QGIS python window?
If not, you need to start the QGIS python from your macOS terminal. You can find the location of the QGIS python from the QGIS python window by
Now open the macOS terminal and call the same python code. Does it return the same executable or a different one?
In anyway you need to start the executable that is used by QGIS and install scikit-learn or other packages like in:
<path to qgis python executable directory>/python3 -m pip install scikit-learn