I first tried:
pip install pyaudio
but I was told that
-bash: pip: command not found
Then I tried:
Steps: I assume you are using a mac osx
download homebrew by pasting this code at any terminal point /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
After installing homebrew, install portaudio: brew install portaudio
Finally install pyaudio using pip pip install pyaudio
Note: Ensure you install homebrew if its not already installed