i tried everything to install pyaudio in my mac like..install brew install, portaudio , pip3 install pyaudio

errors always shows



ERROR: Failed building wheel for pyaudio


Failed to build pyaudio


ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects


MacBook Air 13″, macOS 13.4

Posted on Jul 23, 2023 10:31 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 23, 2023 1:38 PM

I can duplicate this failed Python 3.11.4 pyaudio wheel build which has nothing to do with homebrew, but within the pyaudio-0.2.13.tar.gz sources and the clang invocation that blows up when attempting to access a portaudio.h file in the build process.


Contact the pyaudio developer with the version of Python, version of macOS, the version of clang (clang -v), and the error output from the pip3 install -U pyaudio invocation.

4 replies
Question marked as Top-ranking reply

Jul 23, 2023 1:38 PM in response to bhakland

I can duplicate this failed Python 3.11.4 pyaudio wheel build which has nothing to do with homebrew, but within the pyaudio-0.2.13.tar.gz sources and the clang invocation that blows up when attempting to access a portaudio.h file in the build process.


Contact the pyaudio developer with the version of Python, version of macOS, the version of clang (clang -v), and the error output from the pip3 install -U pyaudio invocation.

Jul 23, 2023 11:53 AM in response to bhakland

bhakland wrote:

i tried everything to install pyaudio in my mac like..install brew install

Full stop. That's all I needed to see. I didn't even have to read the entire question title!


Another win for Homebrew!


You didn't say anything about what kind of Mac you have. If you have a modern Mac, you can use the "Reset" option to reset the computer. Otherwise, you'll need to erase the hard drive and reinstall the operating system.


In theory, you can uninstall Homebrew and remove it from your environment. But usually people install Homebrew so they don't have to learn how to do things like that.

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.

i tried everything to install pyaudio in my mac like..install brew install, portaudio , pip3 install pyaudio

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