Beeware ModuleNotFoundError with cv2

88 Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

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.