@echo off REM Install the singing-detection ML dependencies into Python 3.10. REM TensorFlow does not support Python 3.12+, so we pin 3.10 via the py launcher. py -3.10 --version >nul 2>&1 if errorlevel 1 ( echo Python 3.10 not found via the "py" launcher. echo Install Python 3.10 from https://www.python.org/downloads/release/python-31011/ echo Then re-run this script. pause exit /b 1 ) echo Installing inaSpeechSegmenter + TensorFlow into Python 3.10... py -3.10 -m pip install --upgrade pip py -3.10 -m pip install -r "%~dp0requirements.txt" REM Re-pin NumPy last: TensorFlow can drag NumPy 2.x back in, which crashes TF REM with "_pywrap_bfloat16.TF_bfloat16_type() () -> handle". py -3.10 -m pip install "numpy<2" echo. echo Verifying... py -3.10 -c "from inaSpeechSegmenter import Segmenter; print('inaSpeechSegmenter OK')" pause