Flask Virtual Environment

From Teknologisk videncenter
Jump to: navigation, search
#!/bin/bash
sudo apt install python3-venv # Install python virtual environment (If not already installed)
python3 -m venv venv # Create an virtual Python environment
. venv/bin/activate # Activate the environment - Use deactivate to exit the virtual environment
pip install --upgrade pip wheel setuptools requests
pip install flask
#pip install turbo_flask
pip install Flask-Nav
pip install flask-bootstrap
pip install flask-socketio
pip install netifaces
echo "Remember to active virtual environment with 'source venv/bin/activte'"
#flask --debug --app ws1.py run --host=0.0.0.0