Skip to content Skip to sidebar Skip to footer

Pyaudio Installation Always Fails On Mac

Firstly, I tried pip install pyaudio But that didn't work... I found that I need PortAudio, so installed it with brew: brew install portaudio That worked and then I restarted my

Solution 1:

Very likely you need to specify the directory path where the compiler can find the source programs like portaudio.h.

Under assumption that the headers are in /usr/local/include directory, try to run the below command in the Terminal:

pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio

Solution 2:

your problem is that with the Xcode command-line. Reinstall using this

xcode-select--install

after xcode is fixed the command('xcrun') should be able to run so just reuse

pip3 install pyaudio

Solution 3:

you may need to upgrade pip python3 -m pip install --upgrade pip

-- Successfully installed pip-21.2.4

and/or invoke pip3 pip3 install ...

Post a Comment for "Pyaudio Installation Always Fails On Mac"