Installing PyAudio on macOS

Installing pyaudio on macOS is almost straightforward, except that you need portaudio installed. The easiest way to remedy this is to use homebrew. If you have your homebrew installing in the recomended location it is as simple as the following:

brew install portaudio
pipenv install pyaudio

However if you have homebrew using a non-standard location, it requires a few additional settings, if you don’t have them set already.

brew install portaudio
export C_INCLUDE_PATH=~/homebrew/include/:$C_INCLUDE_PATH
export LIBRARY_PATH=~/homebrew/lib/:$LIBRARY_PATH
pipenv install pyaudio

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply