LLMVideoPipeline/setup.sh

37 lines
1.5 KiB
Bash
Raw Normal View History

2026-08-16 09:39:36 -06:00
#!/usr/bin/env bash
# ==============================================================================
# YouTube Factory - One-Command Environment Setup
# Automates dependency checking and installation on any new machine.
# ==============================================================================
set -e
echo "=============================================================================="
echo "🚀 Setting up YouTube Factory Environment..."
echo "=============================================================================="
# 1. Check Python
if ! command -v python3 &> /dev/null; then
echo "❌ python3 not found. Please install Python 3.9+."
exit 1
fi
echo "📦 Python version: $(python3 --version)"
# 2. Upgrade pip and install Python dependencies
echo "📦 Installing Python packages from requirements.txt..."
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
# 3. Check system tools
echo "🔧 Checking system utilities (ffmpeg, ssh, scp, curl)..."
python3 -c "from pipeline.dependency_manager import ensure_dependencies; ensure_dependencies(auto_install=True, check_remote=True)"
echo "=============================================================================="
echo "✅ Environment setup complete!"
echo "To test your connection to the 3 AI PCs, run:"
echo " python3 youtube_factory.py --health"
echo "To generate your first video, run:"
echo " python3 youtube_factory.py --topic 'The Mysteries of the Universe'"
echo "=============================================================================="