How to run Python Flask application on Ubuntu 22.04

How to run Python Flask application on Ubuntu 22.04

Β·

1 min read

Run the below commands as it is.

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10
sudo apt install python3.10-venv

python3 -m venv Python-Project-for-Helm-K8s

source Python-Project-for-Helm-K8s/bin/activate

pip install flask

export FLASK_APP=main.py

flask run

Check on the browser

Stay connected on LinkedIn: LinkedIn Profile

Stay up-to-date with GitHub: GitHub Profile

Feel free to reach out to me, if you have any other queries.

Happy Learning

Β