Skip to content

Instantly share code, notes, and snippets.

@mrf345
Created October 7, 2017 13:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mrf345/df900b93245ae60b2dae8e36d4d1f191 to your computer and use it in GitHub Desktop.
Save mrf345/df900b93245ae60b2dae8e36d4d1f191 to your computer and use it in GitHub Desktop.
Building one-file executable for Python Flask using Pyinstaller
#!/bin/bash
pyinstaller -F -w \
--hidden-import='email.mime.multipart' \
--hidden-import='email.mime.message' \
--hidden-import='email.mime.text' \
--hidden-import='email.mime.image' \
--hidden-import='email.mime.audio' \
--hidden-import='sqlalchemy.sql.default_comparator' \
--hidden-import='jinja2' \
main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment