import subprocess import sys # Function to install a package using pip def install_package(package): subprocess.check_call([sys.executable, "-m", "pip", "install", package]) # Install Flask install_package("flask") from flask import Flask, render_template_string app = Flask(__name__) @app.route('/') def index(): return render_template_string(''' Embed Webpage ''') if __name__ == '__main__': app.run(debug=True)