Pip3 install cannot find float.h when trying to install pyAudio
Hi,
I am trying to install pyaudio as part of a Python Speech Recognition project that I am working on.
I have already installed port audio which is a dependency for pyaudio and that installed fine. However, when I try to install pyaudio via:
pip3 install pyaudio
I get the following error:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/float.h:8:15: fatal error: 'float.h' file not found
#include_next <float.h>
^~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
I have followed some advice on stackoverflow and located the float.h file in:
/usr/include/c++/4.2.1/tr1/float.h
But it seems that pyaudio or pip3 are only looking in /usr/include.
Any ideas on the best way to resolve this? I am not sure if there is a way to tell Pip3 where to look?
MacBook Pro, macOS Sierra (10.12.2), null