I have written a flask application and it works perfectly fine. I wanted to distribute it as an executable. Tried doing it using pyinstaller flaskScript.py dist folder got
I've just wrote a blog post about this problem and others similar, Create one executable file for a Flask app with PyInstaller
Basically an elegant solution is to execute the following:
Windows
pyinstaller -w -F --add-data "templates;templates" --add-data "static;static" app.py
Linux (NOT TESTED)
pyinstaller -w -F --add-data "templates:templates" --add-data "static:static" app.py