What went wrong?
Well, the normal installation command of:
Encountered an error that ended with:
Yours may differ, of course.
There are a few fixes and you should be able to install this. Heck, I’m trying to install this on a Raspberry Pi 4.
Fixing the install
Make sure pip, setuptools, and wheel are up to date:
Then, we’ll install the required binaries/libraries for building PyAudio:
Check Python version
I’m using Python v 3.11, but as far as I understand at the time of writing the minimum requirement for this version is Python 3.9+.
Things should be happy at this point. Run
pip3 install pyaudio again, and it should install.
If things don’t, some of the other fixes I’ve come across are:
ERROR: Could not build wheels for xmlsec which use PEP 517 and cannot be installed directly:
And other fixes like:
Using an Apple M1 or M2?
Things are still new. See Macbook m1 and python libraries