CentOS 7.4 下安装PyAudio 需要先安装 portaudio

来源:互联网 发布:郭敬明作品集软件下载 编辑:程序博客网 时间:2024/06/09 22:16

python3.6 下安装 pyaudio出错,错误信息如下:

fatal error: portaudio.h: No such file or directorycompilation 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

  

原创粉丝点击