Skip to content

Commit a32cdb5

Browse files
committed
fix: 修复构建依赖和编码问题
- 降级 pip 到 <24.1 解决 omegaconf 元数据问题 - 手动安装 omegaconf 和依赖避免冲突 - 设置 Windows 环境变量 PYTHONIOENCODING=utf-8 解决中文编码问题 - 移除 mcp 和 audio-separator 依赖(非必需)
1 parent 58cd376 commit a32cdb5

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/build-executables.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ jobs:
2121

2222
- name: Install dependencies
2323
run: |
24-
python -m pip install --upgrade pip
24+
python -m pip install --upgrade "pip<24.1"
2525
pip install pyinstaller
2626
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu121
27-
pip install fairseq==0.12.2
28-
pip install -r requirements.txt --no-deps
29-
pip install gradio==3.50.2 librosa soundfile scipy numpy praat-parselmouth pyworld torchcrepe faiss-cpu tqdm requests python-dotenv colorama mcp demucs audio-separator huggingface_hub pedalboard ffmpeg-python
27+
pip install omegaconf==2.0.6 --no-deps
28+
pip install PyYAML antlr4-python3-runtime hydra-core
29+
pip install fairseq==0.12.2 --no-deps
30+
pip install gradio==3.50.2 librosa soundfile scipy numpy praat-parselmouth pyworld torchcrepe faiss-cpu tqdm requests python-dotenv colorama demucs huggingface_hub pedalboard ffmpeg-python av
3031
3132
- name: Download base models
3233
run: |
@@ -107,12 +108,13 @@ jobs:
107108
108109
- name: Install Python dependencies
109110
run: |
110-
python -m pip install --upgrade pip
111+
python -m pip install --upgrade "pip<24.1"
111112
pip install pyinstaller
112113
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu121
113-
pip install fairseq==0.12.2
114-
pip install -r requirements.txt --no-deps
115-
pip install gradio==3.50.2 librosa soundfile scipy numpy praat-parselmouth pyworld torchcrepe faiss-cpu tqdm requests python-dotenv colorama mcp demucs audio-separator huggingface_hub pedalboard ffmpeg-python
114+
pip install omegaconf==2.0.6 --no-deps
115+
pip install PyYAML antlr4-python3-runtime hydra-core
116+
pip install fairseq==0.12.2 --no-deps
117+
pip install gradio==3.50.2 librosa soundfile scipy numpy praat-parselmouth pyworld torchcrepe faiss-cpu tqdm requests python-dotenv colorama demucs huggingface_hub pedalboard ffmpeg-python av
116118
117119
- name: Download base models
118120
run: |

0 commit comments

Comments
 (0)