title: ERROR: Command errored out with exit status 1: python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"''
body: <p>I want to install package PyAudio
  i have downloaded Microsoft Visual C++ from <a href="https://visualstudio.microsoft.com/visual-cpp-build-tools/" rel="nofollow noreferrer">https://visualstudio.microsoft.com/visual-cpp-build-tools/</a></p>
  <pre><code>pip install PyAudio
  Collecting PyAudio
    Using cached PyAudio-0.2.11.tar.gz (37 kB)
  Using legacy 'setup.py install' for PyAudio, since package 'wheel' is not installed.
  Installing collected packages: PyAudio
      Running setup.py install for PyAudio ... error
      ERROR: Command errored out with exit status 1:
       command: 'C:\Users\user\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-sr306wg6\\pyaudio_6f7053cacf7449edbc9d6ffc2af1c1b7\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-sr306wg6\\pyaudio_6f7053cacf7449edbc9d6ffc2af1c1b7\\setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) else io.StringIO('&quot;'&quot;'from setuptools import setup; setup()'&quot;'&quot;');code = f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-4a7_eg67\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\AppData\Local\Programs\Python\Python39\Include\PyAudio'
           cwd: C:\Users\user\AppData\Local\Temp\pip-install-sr306wg6\pyaudio_6f7053cacf7449edbc9d6ffc2af1c1b7\
      Complete output (17 lines):
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.9
      copying src\pyaudio.py -&gt; build\lib.win-amd64-3.9
      running build_ext
      building '_portaudio' extension
      creating build\temp.win-amd64-3.9
      creating build\temp.win-amd64-3.9\Release
      creating build\temp.win-amd64-3.9\Release\src
      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -IC:\Users\user\AppData\Local\Programs\Python\Python39\include -IC:\Users\user\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.9\Release\src/_portaudiomodule.obj
      _portaudiomodule.c
      C:\Users\user\AppData\Local\Programs\Python\Python39\include\pyconfig.h(117): warning C4005: MS_WIN64: Ё§¬Ґ­Ґ­ЁҐ ¬ Єа®®ЇаҐ¤Ґ«Ґ­Ёп
      src/_portaudiomodule.c: note: б¬. ЇаҐ¤л¤гйҐҐ ®ЇаҐ¤Ґ«Ґ­ЁҐ &quot;MS_WIN64&quot;
      src/_portaudiomodule.c(29): fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«озҐ­ЁҐ: portaudio.h: No such file or directory,
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'C:\Users\user\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-sr306wg6\\pyaudio_6f7053cacf7449edbc9d6ffc2af1c1b7\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-sr306wg6\\pyaudio_6f7053cacf7449edbc9d6ffc2af1c1b7\\setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) else io.StringIO('&quot;'&quot;'from setuptools import setup; setup()'&quot;'&quot;');code = f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-4a7_eg67\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\AppData\Local\Programs\Python\Python39\Include\PyAudio' Check the logs for full command output.
  </code></pre>