Most likely, PyInstaller didn’t find cv2
, not that it failed to recognize it as a package. Run the ls
command in your terminal to see the files and directories in the current directory. If these don’t match your development environment, use the cd
command to navigate to the directory where your .conda
or .venv
environment is located, so that PyInstaller can find cv2
.