Skip to content

Instantly share code, notes, and snippets.

@abhi18av
Forked from jiaaro/installing_pyaudio.md
Created January 16, 2017 04:55
Show Gist options
  • Save abhi18av/0eab708a8e476c934ec3410f7e764b1b to your computer and use it in GitHub Desktop.
Save abhi18av/0eab708a8e476c934ec3410f7e764b1b to your computer and use it in GitHub Desktop.
How to install PyAudio into a VirtualEnv on Mac OS X 10.10

Install portaudio using homebrew (or method of your choice)

brew install portaudio

create $HOME/.pydistutils.cfg using the include and lib directories of your portaudio install:

[build_ext]
include_dirs=/Users/jrobert1271/homebrew/Cellar/portaudio/19.20140130/include/
library_dirs=/Users/jrobert1271/homebrew/Cellar/portaudio/19.20140130/lib/

Then in your virtualenv:

pip install --allow-external pyaudio --allow-unverified pyaudio pyaudio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment