JimWest / MeFaMo

MIT License
482 stars 103 forks source link

Compile Python to Executable #11

Closed ppyht2 closed 2 years ago

ppyht2 commented 2 years ago

Hi Jim, thanks for creating this repo, this combined with pylivelink opens a lot of a opportunities.

Can you share some details on how you created the stand along binary? Specifically how you've incorporate the libraries such as mediapipe and opencv.

JimWest commented 2 years ago

Hi, oh yeah I missed it in the Readme. Here's the command which I used to create that exe. You need to install pyinstaller and then use the included spec file:

pip install pyinstaller
pyinstaller --onefile .\examples\mefamo.spec

I will add it to the readme (and also add the spec file which includes the commands for including all libs etc).

JimWest commented 2 years ago

Added everything to git.