Ensure you have Python installed. If not, download and install it from Python's official website.
sudo apt-get install python3-venv # For Debian-based systemspython3 -m venv venvFor Linux/macOS:
source venv/bin/activateFor Windows (PowerShell):
venv\Scripts\Activatenohup python3 app.py > app.log 2>&1 &You can check the logs by running:
tail -f app.logTo stop the application, find its process ID (PID) using:
ps aux | grep app.pyThen, kill the process:
kill <PID>To deactivate the virtual environment, simply run:
deactivateThis will return you to the system’s default Python environment.