Search code examples
pythonopencvpython-venvmodulenotfounderrorbeeware

Beeware ModuleNotFoundError with cv2


I try to create a python app which run with open cv by beeware in python. I can run the program by briefcase dev. But after I pack it into a exe file and try to run, it return ModuleNotFoundError.

enter image description here

It is my first time try to pack a python program into exe. It seems that I missed some steps, but I have no idea in it.


Solution

  • To add a package to your app, you must list it in the requires section of your pyproject.toml file. For details, see the "third-party" page of the BeeWare tutorial.