sudo apt-get install python3-venv python3-dev python3-setuptools python3-mysqldb python3-pip libapache2-mod-wsgi-py3 git build-essential
git clone https://github.com/daserzw/flup.git /opt/flup
python3 -m pip install virtualenv
cd /opt/flup ; virtualenv /opt/flup/venv
sudo chown www-data:www-data /opt/flup/flup/data
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
export FLASK_APP=flup
flask run
to run the development server