title: How to install pyaudio on mac using Python 3?
body: <p>I first tried:</p>
  <pre><code>pip install pyaudio
  </code></pre>
  <p>but I was told that</p>
  <pre><code>-bash: pip: command not found
  </code></pre>
  <p>Then I tried:</p>
  <pre><code>pip3 install pyaudio
  </code></pre>
  <p>Then I got:</p>
  <pre><code>src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
  
  #include &quot;portaudio.h&quot;
  
           ^
  
  1 error generated.
  
  error: command '/usr/bin/clang' failed with exit status 1
  
  ----------------------------------------
  Command &quot;/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -c &quot;import setuptools, tokenize;__file__='/private/var/folders/77/gz1txkwj2z925vk6jrkx3wp80000gn/T/pip-build-43z_qk7o/pyaudio/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))&quot; install --record /var/folders/77/gz1txkwj2z925vk6jrkx3wp80000gn/T/pip-tkf78ih4-record/install-record.txt --single-version-externally-managed --compile&quot; failed with error code 1 in /private/var/folders/77/gz1txkwj2z925vk6jrkx3wp80000gn/T/pip-build-43z_qk7o/pyaudio
  </code></pre>
  <p>but I had installed portaudio</p>
  <pre><code>brew install portaudio
  </code></pre>
  <p>Warning: portaudio-19.20140130 already installed</p>
  <p>So what can I do?</p>