<filename>hook-sklearn.py
from PyInstaller.utils.hooks import collect_submodules

hiddenimports = collect_submodules('sklearn')
<filename>hook-sklearn.py
from PyInstaller.utils.hooks import collect_submodules

hiddenimports = collect_submodules('sklearn')