Import pyaudio doesn't work - Symbol not found: _PaMacCore_SetupChannelMap on mac (Big Sur M1 Apple Silicon)
Don't know if you still need the solution, but here was mine after hours of googling (I also owned a Mac m1):
I could not install PyAudio at first and encountered problems even after I successfully installed PyAudio. I used python 3.9 installed with brew for the process.
- uninstall previous version of portaudio + PyAudio
- (optional) Install the latest Brew supported for Mac m1 using the command on the Brew homepage
- (optional) Install wheel and setuptools: python3 -m pip install --upgrade pip setuptools wheel
- Install the latest version of portaudio (I believe this is the core problem, stable version 19.6.0 did not work): brew install portaudio --HEAD
- Install PyAudio with pip: python3 -m pip install pyaudio --global-option="build_ext" --global-option="-I/opt/homebrew/include" --global-option="-L/opt/homebrew/lib"
Restart terminal might help if things did not go well.