Building wheels for collected packages: pynini Building wheel for pynini (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for pynini (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [65 lines of output] running bdist_wheel running build ... cl: 命令行 error D8021 :无效的数值参数“/Wno-register” error: command'A:\\VS\\VC\\Tools\\MSVC\\14.43.34808\\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 Failed to build pynini ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pynini)
1.pynini
pynini 是一个依赖 C++ 扩展的库,在 Windows 环境下需要特定的编译工具链和配置才能成功编译。
根据 pynini 官方文档的建议,使用 Windows Subsystem for Linux (WSL) 是解决在 Windows 上安装和运行 pynini 的推荐方法。但是已经在windows上操作了几步了,实在是不想换。