'How can I install pyaudio on a mac with M1 chip? (Have tried homebrew and portaudio already)

I am trying to install pyaudio on my Mac, but I keep getting an error. I have tried using homebrew, then installing portaudio, but still, get the same error. I have also tried installing without Xcode using a sudo command which still resulted in an error.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source