Difference between revisions of "Flask Virtual Environment"
From Teknologisk videncenter
(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...") |
(No difference)
|
Latest revision as of 12:34, 14 November 2023
#!/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