title: PyAudio failed to install on Windows 10
body: <p>When I am trying to install PyAudio using</p>
  <pre class="lang-none prettyprint-override"><code>pip install pyaudio
  </code></pre>
  <p>I get this error:</p>
  <pre class="lang-none prettyprint-override"><code>C:\Users\pankajkaun&gt;pip install pyaudio
  Collecting pyaudio
    Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
  Installing collected packages: pyaudio
    Running setup.py install for pyaudio ... error
      Complete output from command c:\users\pankajkaun\desktop\python\python.exe -u -c &quot;import setuptools, tokenize;__file__='C:\\Users\\PANKAJ~1\\AppData\\Local\\Temp\\pip-install-pw8_ueh5\\pyaudio
  \\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))&quot; install --record C:\Users\PANKAJ~1\AppData\Local\Temp
  \pip-record-eru_9orv\install-record.txt --single-version-externally-managed --compile:
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.7
      copying src\pyaudio.py -&gt; build\lib.win-amd64-3.7
      running build_ext
      building '_portaudio' extension
      creating build\temp.win-amd64-3.7
      creating build\temp.win-amd64-3.7\Release
      creating build\temp.win-amd64-3.7\Release\src
      C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:\users\pankajkaun\desktop\python\include -Ic:\users\pankajkaun\desktop\python\
  include &quot;-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt&quot; &quot;-
  IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um&quot; &quot;-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt&quot; &quot;-IC:
  \Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt&quot; /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.7\Release\src/_portaudiomodule.obj
      _portaudiomodule.c
      c:\users\pankajkaun\desktop\python\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
      src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
      src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  
      ----------------------------------------
  Command &quot;c:\users\pankajkaun\desktop\python\python.exe -u -c &quot;import setuptools, tokenize;__file__='C:\\Users\\PANKAJ~1\\AppData\\Local\\Temp\\pip-install-pw8_ueh5\\pyaudio
  \\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))&quot; install --record 
  C:\Users\PANKAJ~1\AppData\Local\Temp\pip-record-eru_9orv\install-record.txt --single-version-externally-managed --compile&quot; failed with error code 1 in C:\Users\PANKAJ~1\AppData\Local\Temp\pip-install-pw8_ueh5\pyaudio\
  </code></pre>
  <p>Any idea what's going on in here?</p>