install flask with python3 when default system python is python2

sudo apt install python3-pip

python3 -m pip install --upgrade pip # this upgrade pip3

sudo pip3 install setuptools
sudo pip3 install flask