title: "ERROR: Command errored out with exit status 1:" need fix
body: <p>I am trying to make a voice assistant in python</p>
  <p>i have been scratching my head for a month or 2 by now
  here is my code with isues:</p>
  <pre><code>```
  import speech_recognition as sr
  # giving greeting functions
  def wishMe():
      hour = datetime.datetime.now().hour
      if hour &gt;= 0 and hour &lt; 12:
          speak(&quot;Hello,Good Morning&quot;)
          print(&quot;Hello,Good Morning&quot;)
      elif hour &gt;= 12 and hour &lt; 18:
          speak(&quot;Hello,Good Afternoon&quot;)
          print(&quot;Hello,Good Afternoon&quot;)
      else:
          speak(&quot;Hello,Good Evening&quot;)
          print(&quot;Hello,Good Evening&quot;)
  
  
  def takeCommand():
      r = sr.Recognizer()
      with sr.Microphone() as source:
          print(&quot;Listening...&quot;)
          audio = r.listen(source)
  ```
  </code></pre>
  <p>here is the error :</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Python39\lib\site-packages\speech_recognition\__init__.py&quot;, line 108, in get_pyaudio
      import pyaudio
  ModuleNotFoundError: No module named 'pyaudio'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\Voice Assistant\Voice Assistant.py&quot;, line 66, in &lt;module&gt;
      statement = takeCommand().lower()
    File &quot;C:\Voice Assistant\Voice Assistant.py&quot;, line 43, in takeCommand
      with sr.Microphone() as source:
    File &quot;C:\Python39\lib\site-packages\speech_recognition\__init__.py&quot;, line 79, in __init__
      self.pyaudio_module = self.get_pyaudio()
    File &quot;C:\Python39\lib\site-packages\speech_recognition\__init__.py&quot;, line 110, in get_pyaudio
      raise AttributeError(&quot;Could not find PyAudio; check installation&quot;)
  AttributeError: Could not find PyAudio; check installation
  
  Process finished with exit code 1
  </code></pre>
  <p>when i dove a little deeper this is what i found:</p>
  <pre><code>try:
      import pyaudio
  except ImportError:
      raise AttributeError(&quot;Could not find PyAudio; check installation&quot;)
  from distutils.version import LooseVersion
  if LooseVersion(pyaudio.__version__) &lt; LooseVersion(&quot;0.2.11&quot;):
      raise AttributeError(&quot;PyAudio 0.2.11 or later is required (found version {})&quot;.format(pyaudio.__version__))
  return pyaudio
  </code></pre>
  <p>when i tried installing the module this is what happend:</p>
  <pre><code>C:\Users\username &gt;pip install pyaudio
  Collecting pyaudio
    Downloading PyAudio-0.2.11.tar.gz (37 kB)
  Building wheels for collected packages: pyaudio
    Building wheel for pyaudio (setup.py) ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-oijw55t3\\pyaudio_ef3a4852614643949811c737559924db\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-oijw55t3\\pyaudio_ef3a4852614643949811c737559924db\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);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;'))' bdist_wheel -d 'C:\Users\username\AppData\Local\Temp\pip-wheel-4tcqz_1o'
         cwd: C:\Users\mayan\AppData\Local\Temp\pip-install-oijw55t3\pyaudio_ef3a4852614643949811c737559924db\
    Complete output (17 lines):
    running bdist_wheel
    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.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.9\Release\src/_portaudiomodule.obj
    _portaudiomodule.c
    c:\python39\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\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
    ERROR: Failed building wheel for pyaudio
    Running setup.py clean for pyaudio
  Failed to build pyaudio
  Installing collected packages: pyaudio
      Running setup.py install for pyaudio ... error
      ERROR: Command errored out with exit status 1:
       command: 'c:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-oijw55t3\\pyaudio_ef3a4852614643949811c737559924db\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-oijw55t3\\pyaudio_ef3a4852614643949811c737559924db\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);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\username\AppData\Local\Temp\pip-record-hnn7qujd\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\pyaudio'
           cwd: C:\Users\username\AppData\Local\Temp\pip-install-oijw55t3\pyaudio_ef3a4852614643949811c737559924db\
      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.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:\python39\include -Ic:\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.9\Release\src/_portaudiomodule.obj
      _portaudiomodule.c
      c:\python39\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\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'c:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\mayan\\AppData\\Local\\Temp\\pip-install-oijw55t3\\pyaudio_ef3a4852614643949811c737559924db\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-oijw55t3\\pyaudio_ef3a4852614643949811c737559924db\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);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\username\AppData\Local\Temp\pip-record-hnn7qujd\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\pyaudio' Check the logs for full command output.
  
  </code></pre>
  <p>I also noticed the same message with different modules.</p>
  <p>**</p>
  <blockquote>
  <p><em>facts:</em></p>
  <p>pip version: pip 21.0.1</p>
  <p>python version: python 3.9</p>
  <p>IDLE: Pycharm, publisher: jetbrains</p>
  <p>Directory: &quot;C:\Voice Assistant&quot;</p>
  <p>OS :Windows</p>
  <p>Windows version: Windows 10 Home</p>
  </blockquote>
  <p>**</p>
  <p>what i tried:</p>
  <blockquote>
  <p>pip install setuptools</p>
  <p>pip upgrade setuptools</p>
  </blockquote>
  <p>what i expect:</p>
  <blockquote>
  <p>installation only using pip</p>
  <p>download latest non beta version</p>
  </blockquote>
  <p>Thank You For You Assistance!</p>