python3.6 下安装 pyaudio出错,错误信息如下:
fatal error: portaudio.h: No such file or directory compilation terminated. error: Setup script exited with error: command 'gcc' failed with exit status 1
缺少头文件, 安装portaudio可以解决:
10 portaudio.com/download.html 下载 pa_stable_v190600_20161030.tgz (或其他版本)
20 解压安装(tar, ./configure, make,make install)
30 安装Pyaudio
#python -m pip install pyaudio
成功后显示版本为0.2.11