pyaudio_portaudio
pyaudio_portaudio copied to clipboard
Mac OS install?
I'm very excited to use this program but am having difficulties with the install process.
Sorry, I'm very inexperienced with coding and install and whenever I try the process on my mac, I get this:
ERROR: PyAudio-0.2.11-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
Any solution or help would be greatly appreciated!
Best, Eric
PyAudio-0.2.11-cp37-cp37m-win_amd64.whl,may be this package is for windows platform.
The wheel you downloaded is for amd64 windows machines. That won't work on a OS X device.
You prolly wanna do
brew install portaudio
Then
brew install pyaudio
If you use brew.
Else
pip
will do the job just fine.
Remember that you need portaudio bindings for pyaudio to work on OSX..
Hello,
I've been trying to install PyAudio on my Mac, but I'm encountering some difficulties. Could you please provide me with some guidance on how to resolve this issue?
Here's what I've done so far:
I uninstalled PortAudio using Homebrew:
brew remove portaudio
Then, I reinstalled PortAudio:
brew install portaudio
After that, I attempted to install PyAudio using pip:
pip install pyaudio
However, I ran into an error during the installation process. The error log indicates a problem with building the wheel for PyAudio, specifically mentioning an issue with the 'clang' command and a potential architecture mismatch.
I've attached the detailed output of the commands and the error message. I'm currently using a Mac with an ARM64 architecture and Python 3.10. Any advice or suggestions you could offer would be greatly appreciated.
Thank you for your time and assistance.
Best regards, Ian Ko
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
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
I executed the following commands:
sudo xcode-select --reset
sudo xcodebuild -license accept
After that, I re-ran these commands:
brew remove portaudio
brew install portaudio
pip install pyaudio
And I was able to successfully install PyAudio.
If anyone understands the reason behind this and could explain it to me, I would greatly appreciate it. Thank you.