FireRedTTS安装问题排查
在个人电脑上安装运行FireRedTTS,根据官方提供的指引进行安装,遇到了下边几个问题。
在安装之前要先确认已经安装了NVIDIA显卡驱动,查看显卡所支持的CUDA最高版本,下载安装CUDA。
1. 安装过程中编译错误
cl: 命令行 error D8021 :无效的数值参数“/Wno-register”
error: command '...\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pynini
解决办法:先手动安装 pynini=2.1.5
conda install -c conda-forge pynini=2.1.5
2. 安装过程中缺少包
from huggingface_hub import cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (...\lib\site-packages\huggingface_hub\__init__.py)
因为huggingface_hub的当前版本里没有cached_download
将huggingface_hub删掉,重新安装指定版本 huggingface_hub==0.24.6
pip install huggingface-hub==0.24.6