fix(deps): pin pyannote 3.3.2 + torch 2.5.1 to avoid pip resolution-too-deep

- Unbounded pyannote>=3.1 pulled 4.x / torch>=2.8 / opentelemetry graph
- Tighten huggingface_hub and lightning range; document CPU torch two-step

Made-with: Cursor
This commit is contained in:
dosangyoon
2026-03-23 15:51:39 +09:00
parent 723a964d9c
commit 5edd0b32e7
2 changed files with 17 additions and 3 deletions

View File

@@ -75,6 +75,16 @@ conda activate stt
pip install -r requirements.txt
```
**`resolution-too-deep` (pip이 의존성 그래프를 너무 깊게 탐색하다 실패)**
최신 `pyannote.audio` 4.x 쪽은 `torch`·OpenTelemetry 등 하위 의존이 많아 한 번에 설치할 때 자주 납니다. 이 저장소 `requirements.txt`**화자 분리용으로 `pyannote.audio==3.3.2`·`torch==2.5.1`·`lightning<2.5`** 등을 고정해 그래프를 줄여 둡니다. 그래도 실패하면 `pip install -U "pip>=24"` 후 재시도하거나, conda로 torch를 먼저 올린 뒤 같은 env에서 `pip install -r requirements.txt` 하세요 (`conda install pytorch torchaudio cpuonly -c pytorch -y`).
**CPU 전용 PyTorch 휠만 쓰고 싶을 때** (CUDA 번들을 피하려면):
```bash
pip install torch==2.5.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
```
### 2) (선택) 로컬 전사 CLI — `whisper_stt.py`
```bash