Python Flask as Windows Service
问题 I am trying to get a Flask app to run as a Service in Windows. I have already tried to implement a solution as suggested here and here without success. I have a simple folder with just two files: Project | +-- myapp.py +-- win32_service.py Inside myapp.py is a simple Flask app: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' And the service skeleton win32_service.py : import win32serviceutil import win32service import win32event import