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

Posted on Jan 12, 2018 12:27 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Pip3 install cannot find float.h when trying to install pyAudio

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.