python3 and pip should be preinstalled
python3 -m venv venv
. venv/bin/activate
pip install Flask
Now run the application using,
flask --app hello run
You can see the port details in the terminal,
- Serving Flask app 'hello'
- Running on http://127.0.0.1:5000 (Press CTRL+C to quit)
Reference: https://flask.palletsprojects.com/en/2.2.x/installation/