Skip to content

Instantly share code, notes, and snippets.

@wakandan
Forked from jiaaro/installing_pyaudio.md
Created May 10, 2019 04:04
Show Gist options
  • Save wakandan/a48a3454156b5e8d85a202e3496563fa to your computer and use it in GitHub Desktop.
Save wakandan/a48a3454156b5e8d85a202e3496563fa 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