apt-get update && apt-get install -y software-properties-common add-apt-repository ppa:deadsnakes/ppa -y apt-get update && apt-get install -y python3.12 python3.12-venv python3.12-dev #!/bin/bash # Updatepackage list apt-get update # Install Poppler (needed for pdf2image) apt-get install -y poppler-utils # Install Tesseract for OCR (if needed) apt-get install -y tesseract-ocr # Set Python 3.12 as default update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1