【发布时间】:2020-09-15 00:51:22
【问题描述】:
我在 CentOS7 上安装了 python 3.6.8,我正在尝试使用
安装 pyaudiosudo python3.6 -m pip install pyaudio
这种格式可以预先安装许多其他东西,但是如果我在这里尝试使用它,我会收到以下错误
src/_portaudiomodule.c:28:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
pip install pyaudio 产生相同的结果
我已经阅读了here的问答,但我仍然无法弄清楚
在安装方面有什么建议吗?提前谢谢!
【问题讨论】:
标签: python-3.x centos7 pyaudio portaudio