sudo apt install python3-venv
source .env/bin/activate/
pip3 install "anypackage"
#also include in source code
pip3 freeze | grep -v "pkg-resources" > requirements.txt
#to create a req file
FLASK_APP=mr-sim.py flask run
or
python3 mr-sim.py
Check/lint/format the code before commit/amed by autopep8 --in-place --aggressive --aggressive mr-sim.py
When cloning/fetching from the repository first time:
git clone
cd "..."
#navigate to this folder
source setup.sh
#setting up virtualenv and install requirements
you'll get a sourced virtualenv shell here, check prompt
(env) $ python3 mr-sim.py --help
alternatively
(env) $ python3 mr-sim.py --tc1
Every time you run the script, you'll need to step into the virtualenv by following step 3 first.
When cloning/fetching from the repository first time:
Every time you run the script, you'll need to step into the virtualenv by step 2+6.