

After that, the exe file will run without problems. So, what's going to solve the problem is replacing this folder with the one found in "C:\PythonXY\Lib\site-packages" with the same name "sklearn". import cv2 ModuleNotFoundError: No module named 'cv2 ' Terminal inside P圜harm : I'm using the latest version of opencv-python on Linux PopOS 20.04, Python 3.8. There you will find the sklearn folder, which hasn't been fully copied by pyinstaller. Once the process has finished, open the containing folder. If you also use "Auto py to exe" here are two ways to solve this problem.įirst run the installer without selecting the "one file" option (choose one directory). I was using "Auto py to exe", which uses pyinstaller internally and solved this modifying that parameter. I haven't tried but think you will solve this by adding: Edit: This seems to be an issue outside of PyInstaller, but with. What other things should I add to the hidden imports part? Solved-No module named PyInstaller after what appears to be a successful install-docker. Hiddenimports=,Īnd I use this command to make exe file of the project: pyinstaller Datamanager.specīut when I run the exe file it gives this error: ModuleNotFoundError: No module named 'sklearn.utils._cython_blas' I have this import list for my python project: import pandas as pdįrom sklearn.ensemble import RandomForestClassifierįrom sqlalchemy import Column, String, Float, Integer, SmallInteger, MetaDataįrom import declarative_baseĪnd this spec file for distribution of the project: import sys
