Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@ewjoachim

This comment has been minimized.

Show comment
Hide comment
@ewjoachim

ewjoachim commented Jul 6, 2015

Thanks !

@rasmi

This comment has been minimized.

Show comment
Hide comment
@rasmi

rasmi commented Jul 17, 2015

Thanks!

@karadza3a

This comment has been minimized.

Show comment
Hide comment
@karadza3a

karadza3a Jan 11, 2016

Make sure you double-check the path in .cfg, mine was "/usr/local/Cellar/portaudio/19.20140130".

karadza3a commented Jan 11, 2016

Make sure you double-check the path in .cfg, mine was "/usr/local/Cellar/portaudio/19.20140130".

@algera

This comment has been minimized.

Show comment
Hide comment
@algera

algera commented Jul 7, 2016

💯

@exsurgo

This comment has been minimized.

Show comment
Hide comment
@exsurgo

exsurgo Sep 19, 2016

Awesome!! Thanks!

exsurgo commented Sep 19, 2016

Awesome!! Thanks!

@okofish

This comment has been minimized.

Show comment
Hide comment
@okofish

okofish commented Nov 16, 2016

👌

@theSetOfR

This comment has been minimized.

Show comment
Hide comment
@theSetOfR

theSetOfR commented Nov 30, 2016

perfect!

@abhi18av

This comment has been minimized.

Show comment
Hide comment
@abhi18av

abhi18av Jan 16, 2017

Hey, on my anaconda-pythn3.5 installation it raised the following warning

DEPRECATION: --allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.

Regarding my pip version

❯ pip3 --version
pip 9.0.1 from /Users/eklavya/anaconda/lib/python3.5/site-packages (python 3.5)

abhi18av commented Jan 16, 2017

Hey, on my anaconda-pythn3.5 installation it raised the following warning

DEPRECATION: --allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.

Regarding my pip version

❯ pip3 --version
pip 9.0.1 from /Users/eklavya/anaconda/lib/python3.5/site-packages (python 3.5)
@cbcafiero

This comment has been minimized.

Show comment
Hide comment
@cbcafiero

cbcafiero May 26, 2017

If using Macports, tweak the recipe

port install portaudio

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

[build_ext]
include_dirs=/opt/local/include/
library_dirs=/opt/local/lib/

Then in your virtualenv:

pip install --allow-external pyaudio --allow-unverified pyaudio pyaudio

cbcafiero commented May 26, 2017

If using Macports, tweak the recipe

port install portaudio

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

[build_ext]
include_dirs=/opt/local/include/
library_dirs=/opt/local/lib/

Then in your virtualenv:

pip install --allow-external pyaudio --allow-unverified pyaudio pyaudio
@jnfran92

This comment has been minimized.

Show comment
Hide comment
@jnfran92

jnfran92 May 23, 2018

Great, Thanks !

jnfran92 commented May 23, 2018

Great, Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment