flask-pyinstaller | Create standalone flask app using pyinstaller | Platform As A Service library
kandi X-RAY | flask-pyinstaller Summary
kandi X-RAY | flask-pyinstaller Summary
Create standalone flask app using pyinstaller
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Open web browser .
- Show hello world .
flask-pyinstaller Key Features
flask-pyinstaller Examples and Code Snippets
Community Discussions
Trending Discussions on flask-pyinstaller
QUESTION
I am looking at this blog post for creating an executable file to run a flask app on Windows. Question, would this be useful if there was a standalone app created for people using that app that were not very computer technical? IE, just run the .exe
file to open up the app on a localhost web browser versus opening up the command prompt to run a typical flask server...
Im just experimenting with this and I pip install pyinstaller
as the blog post mentioned, and ran this command pyinstaller -w -F hello.py
across my test flask code directory.
ANSWER
Answered 2019-Jun-04 at 07:38You are setting Flask app's debug=True
which means that you want to run it in debug mode.
On the other hand, you are disabling the python' console in your output executable with -w
flag. This is your error. Either remove -w
flag from your Pyinstaller build command or set debug=False
in your Flask's app.
I suggest you keep the console window because if you get any error in your Flask app you would see the error log in the console.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flask-pyinstaller
You can use flask-pyinstaller like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page