
With brew from step (3), run: ibrew install portaudio

Ibrew install -build-from-source -vd boost-python3 With brew from step (3), run: ibrew install -build-from-source -vd boost Install boost and boost_python libraries:.bash_profile, insert: alias ibrew="arch -x86_64 /usr/local/bin/brew" In terminal created in (1), run: arch -x86_64 /bin/bash -c "$(curl -fsSL )" This is not trivial and took me almost a day, so I describe it to some time for people in need.

All I can think of is that it has to do something with the M1 chip, because the install worked just fine on a non-M1 mac.ĭoes anyone have any idea what could be causing this?įor those who must use python packages which are not yet available for the arm-architecture, we must revert to intel-based Python packages. I tried googling it but to no avail, I'm really not sure what is happening. In /Library/Frameworks/amework/Versions/3.9/lib/python3.9/site-packages/_ Referenced from: /Library/Frameworks/amework/Versions/3.9/lib/python3.9/site-packages/_ ImportError: dlopen(/Library/Frameworks/amework/Versions/3.9/lib/python3.9/site-packages/_, 2): Symbol not found: _PaMacCore_SetupChannelMap

Well, not this time.Īfter trying a lot of different things, finally I found this guide and after finding my homebrew directory, I could do:Įxport LIBRARY_PATH=/opt/homebrew/lib/:$LIBRARY_PATH - same with C_INCLUDEĪfter I did this, pyaudio installed fine! However, now I'm getting an error when I try to import pyaudio to any python program and run it: Traceback (most recent call last):įile "/Users/bende/GitHub/fretboard-learner/main.py", line 5, in įile "/Library/Frameworks/amework/Versions/3.9/lib/python3.9/site-packages/pyaudio.py", line 116, in I remember I had this issue on my other laptop as well, but then a simple brew install portaudio fixed it. At first I couldn't get past the famous src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found error. I am trying to install pyaudio on my new Macbook Air with the M1 chip (Big Sur).
