remove venv from web v2

This commit is contained in:
Chuck
2025-08-11 11:27:03 -05:00
parent 151777fbd6
commit 28c81825cc
6 changed files with 95 additions and 135 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# LED Matrix Web Interface V2 Runner
# This script sets up a virtual environment and runs the web interface
# This script runs the web interface using system Python
set -e
@@ -11,24 +11,14 @@ cd "$SCRIPT_DIR"
echo "Setting up LED Matrix Web Interface V2..."
# Check if virtual environment exists
if [ ! -d "venv_web_v2" ]; then
echo "Creating virtual environment..."
python3 -m venv venv_web_v2
fi
# Activate virtual environment
echo "Activating virtual environment..."
source venv_web_v2/bin/activate
# Install dependencies
# Install dependencies using system Python
echo "Installing dependencies..."
pip install -r requirements_web_v2.txt
python3 -m pip install -r requirements_web_v2.txt
# Install rgbmatrix module from local source
echo "Installing rgbmatrix module..."
pip install -e rpi-rgb-led-matrix-master/bindings/python
python3 -m pip install -e rpi-rgb-led-matrix-master/bindings/python
# Run the web interface
echo "Starting web interface on http://0.0.0.0:5001"
python web_interface_v2.py
python3 web_interface_v2.py