Skip to content
Advertisement

How to install pyaudio on mac using Python 3?

I first tried:

JavaScript

but I was told that

JavaScript

Then I tried:

JavaScript

Then I got:

JavaScript

but I had installed portaudio

JavaScript

Warning: portaudio-19.20140130 already installed

So what can I do?

Advertisement

Answer

I’m assuming you are on a Mac. This is a simple issue to fix.

First install Xcode. Then restart your computer. Afterwards run the commands in sequence,

JavaScript

So to clarify, Xcode is installed through the App Store. Xcode command line tools are required for some installations, for others they are not. I’m including it here just to be on the safe side. You also probably do not need to uninstall and reinstall the formula via Homebrew, I did that to ensure that there would be absolutely no problems.

Edit: I have been told Homebrew requires Xcode. So just run the

JavaScript

command to be able to use Clang. Also what version of Mac are you on?

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement