Search code examples
pythonraspbianpyaudio

PyAudio compilation on Raspbian


When trying to install pyaudio with pip install pyaudio on Raspbian, I get:

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

How to build pyaudio with Raspbian? Does it need a specific tool?


Solution

  • This works:

    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
    

    Remark: this

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

    would install pyaudio version 0.2.4, which doesn't support working with stream callback.