在安装pyopenjtalk库时总遇到如下错误:
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
……略……
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
解决方法:
conda install cmake
conda install make
sudo apt install g++
用conda安装cmake和make,再用gpt安装g++,最后再安装pyopenjtalk。
pip install pyopenjtalk