3
votes

I'd like to install pyaudio on osx lion but i'm unable to do it. Everytime i try with the pkg, it doesn't install anything. When i try to install it with pip i have the following error (among a lot of other lines) :

lipo: can't open input file: /var/folders/11/gfpzwjdd6dj7hbz7dpbvx9y40000gn/T//ccYnQM1k.out (No such file or directory)

error: command '/usr/bin/llvm-gcc' failed with exit status 1

If anyone can help me, thank you.

1

1 Answers

5
votes

I had to manually install it to get anything working. You'll need the source distributions for both pyaudio and portaudio.

Firstly I installed portaudio with MacPorts (not from the source distribution):

sudo port install portaudio

pyaudio then refused to install as it couldn't find the pa_mac_core.h and portaudio.h headers. After copying these from the portaudio source distribution include folder into pyaudio's src folder, I had to uncomment line 49 of pa_mac_core.h:

#include <AudioToolbox/AudioToolbox.h>

Doing this allowed me to get pyaudio to install using a simple

sudo python setup.py install

(I probably didn't need superuser for the portaudio install, but pyaudio wouldn't install unless I did it as a superuser)