from flask import Flask
app = Flask(__name__)
@app.route('/')
@app.route('/index')
def index():
return 'Hello from Index!'
if __name__ == '__main__':
app.run()
Traceback (most recent call last):
File "run.py", line 1, in <module>
from flask import Flask
ModuleNotFoundError: No module named 'flask'
Python 3.8.10
Flask 2.0.2
Werkzeug 2.0.2