-
-
Save wanghaisheng/67f2e374a0d2df45dded4ebfc1780c4a to your computer and use it in GitHub Desktop.
Building one-file executable for Python Flask using Pyinstaller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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