报错信息:
-DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/devil/anaconda3/envs/91/include -fPIC -O2 -isystem /home/devil/anaconda3/envs/91/include -fPIC -I/usr/local/include -I/usr/include -I/home/devil/anaconda3/envs/91/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/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
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects
参考:
https://blog.csdn.net/smile_5me/article/details/135640758
解决方法:
sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
标签:src,10,pyaudio,api,报错,error,include From: https://www.cnblogs.com/devilmaycry812839668/p/18001130