解决安装pynini和WeTextProcessing报错问题

点击这里,访问博客

0. 背景

最近在给别人有偿部署ASR-LLM-TTS项目时遇到安装pyniniWeTextProcessing依赖报错的问题,报错信息如下:

markdown 复制代码
IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" /EHsc /Tpextensions/_pywrapfst.cpp /Fobuild\temp.win-amd64-cpython-311\Release\extensions/_pywrapfst.obj -std=c++17 -Wno-register -Wno-deprecated-declarations -Wno-unused-function -Wno-unused-local-typedefs -funsigned-char
cl: 命令行 error D8021 :无效的数值参数"/Wno-register"
error: command 'D:\Visual_Studio2022\VC\Tools\MSVC\14.42.34433\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
Running setup.py clean for pynini
Failed to build pynini
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pynini)

1. 解决pynini依赖报错问题

我使用了pip install 方式来安装,结果也是会报错。

于是在网上找到了解决方案,点击这里,跳转到原文。

使用pip install方式,安装报错,那么就可以考虑使用conda install方式安装,如下所示:

shell 复制代码
conda install -c conda-forge pynini=2.1.6

2. 解决WeTextProcessing依赖报错问题

可以使用下面命令解决。

shell 复制代码
pip install WeTextProcessing --no-deps

3. 其它

ASR-LLM-TTS项目源码,点击这里

前后端分离ASR_LLM_TTS项目后端源码,点击这里

前后端分离ASR_LLM_TTS项目前端源码,点击这里

原文出自我的博客,点击这里

相关推荐
max5006006 小时前
本地部署开源数据生成器项目实战指南
开发语言·人工智能·python·深度学习·算法·开源
蛋先生DX7 小时前
零压力了解 LoRA 微调原理
人工智能·llm
MonkeyKing_sunyuhua7 小时前
mac怎么安装uv工具
python·macos·uv
Source.Liu7 小时前
【Python基础】 19 Rust 与 Python if 语句对比笔记
笔记·python·rust
工业互联网专业7 小时前
基于Spark的新冠肺炎疫情实时监控系统_django+spider
python·spark·django·vue·毕业设计·源码·课程设计
ZHOU_WUYI8 小时前
门控MLP(Qwen3MLP)与稀疏混合专家(Qwen3MoeSparseMoeBlock)模块解析
人工智能·llm
Yh8702038 小时前
2025年经济学专业女生必考证书指南:打造差异化竞争力
python
BYSJMG8 小时前
大数据毕业设计推荐:基于Spark的零售时尚精品店销售数据分析系统【Hadoop+python+spark】
大数据·hadoop·python·spark·django·课程设计
醉方休8 小时前
python 自动化在web领域应用
python
Source.Liu8 小时前
【Python基础】 18 Rust 与 Python print 函数完整对比笔记
笔记·python·rust