yeyupiaoling / PaddlePaddle-DeepSpeech

基于PaddlePaddle实现的语音识别,中文语音识别。项目完善,识别效果好。支持Windows,Linux下训练和预测,支持Nvidia Jetson开发板预测。
https://yeyupiaoling.blog.csdn.net/article/details/102904306
Apache License 2.0
649 stars 143 forks source link

Failed to build pyaudio #166

Closed kfchandsome closed 2 months ago

kfchandsome commented 5 months ago

Building wheel for pyaudio (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for pyaudio (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [18 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/pyaudio copying src/pyaudio/init.py -> build/lib.linux-x86_64-cpython-38/pyaudio running build_ext building 'pyaudio._portaudio' extension creating build/temp.linux-x86_64-cpython-38 creating build/temp.linux-x86_64-cpython-38/src creating build/temp.linux-x86_64-cpython-38/src/pyaudio gcc -pthread -B /home/kong/anaconda3/envs/paddle/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include -I/home/kong/anaconda3/envs/paddle/include/python3.8 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-38/src/pyaudio/device_api.o src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: 没有那个文件或目录 9 | #include "portaudio.h" | ^~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyaudio

安装环境时,安装到pyaudio包报错

yeyupiaoling commented 5 months ago

用 conda 安装