I first tried:
pip install pyaudio
but I was told that
-bash: pip: command not found
Then I tried:
For a mac, I think you have to type this into Terminal:
sudo pip install pyaudio
Also, you might have to install Xcode like said in one of the answers.