Flask Virtual Environment

From Teknologisk videncenter
Revision as of 12:34, 14 November 2023 by Heth (talk | contribs) (Created page with "<source lang=bash> #!/bin/bash sudo apt install python3-venv # Install python virtual environment (If not already installed) python3 -m venv venv # Create an virtual Python en...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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