ubuntu 22
问题:
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
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects
I can resolve that problem. First execute:
sudo apt-get install portaudio19-dev
Next, execute:
pip install pyaudio