解决安装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项目前端源码,点击这里

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

相关推荐
项目題供诗16 分钟前
黑马python(二十四)
开发语言·python
晓13131 小时前
OpenCV篇——项目(二)OCR文档扫描
人工智能·python·opencv·pycharm·ocr
是小王同学啊~1 小时前
(LangChain)RAG系统链路向量检索器之Retrievers(五)
python·算法·langchain
AIGC包拥它1 小时前
提示技术系列——链式提示
人工智能·python·langchain·prompt
孟陬1 小时前
Python matplotlib 如何**同时**展示正文和 emoji
python
何双新1 小时前
第 1 课:Flask 简介与环境配置(Markdown 教案)
后端·python·flask
费弗里2 小时前
Python全栈应用开发利器Dash 3.x新版本介绍(2)
python·dash
吴佳浩2 小时前
Python入门指南-AI番外-MCP完整教程:从零开始学会Model Context Protocol
人工智能·python·mcp
加油吧zkf2 小时前
目标检测新纪元:DETR到Mamba实战解析
图像处理·人工智能·python·目标检测·分类
程序员阿超的博客3 小时前
Python 数据分析与机器学习入门 (五):Matplotlib 数据可视化基础
python·信息可视化·数据分析·matplotlib·数据可视化·python教程·pyplot