Raspbian 上的 PyAudio 编译

PyAudio compilation on Raspbian

尝试在 Raspbian 上使用 pip install pyaudio 安装 pyaudio 时,我得到:

Collecting pyaudio
Could not find any downloads that satisfy the requirement pyaudio
Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pyaudio to allow).
No distributions at all found for pyaudio

如何用 Raspbian 构建 pyaudio 它需要特定的工具吗?

尝试使用包管理器安装:

sudo apt-get install python-pyaudio

这个有效:

apt-get install jackd2 libjack-jackd2-0 qjackctl sonic-pi supercollider supercollider-server

git clone http://people.csail.mit.edu/hubert/git/pyaudio.git
cd pyaudio
python setup.py install

备注:这个

sudo apt-get update
sudo apt-get install python-pyaudio

将安装 pyaudio 版本 0.2.4,它不支持使用流 callback