GestionTablets/check_flask.py

20 lines
635 B
Python
Raw Normal View History

#!/usr/bin/env python3
"""
Check if Flask is available and provide installation instructions
"""
try:
import flask
print("✓ Flask is available!")
print("You can run the web version:")
print(" python3 simple_app.py")
print("Then open: http://localhost:8000")
except ImportError:
print("✗ Flask is not installed")
print("\nTo install Flask:")
print(" pip install flask")
print("\nOr use the system package manager:")
print(" sudo apt install python3-flask")
print("\nYou can still use the command-line version:")
print(" python3 minimal_app.py")
print(" python3 test_app.py")