0
PS D:\python project\jarvis> pip3 install pyaudio
Collecting pyaudio
  Using cached PyAudio-0.2.11.tar.gz (37 kB)
  Preparing metadata (setup.py) ... done
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\admin\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-ih9xfjke\\pyaudio_45f725a4f6a6424489d529007194797f\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-ih9xfjke\\pyaudio_45f725a4f6a6424489d529007194797f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\admin\AppData\Local\Temp\pip-record-gkfuqa4d\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Include\pyaudio'
         cwd: C:\Users\admin\AppData\Local\Temp\pip-install-ih9xfjke\pyaudio_45f725a4f6a6424489d529007194797f\
    Complete output (9 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.10
    copying src\pyaudio.py -> build\lib.win-amd64-3.10
    running build_ext
    building '_portaudio' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\admin\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-ih9xfjke\\pyaudio_45f725a4f6a6424489d529007194797f\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-ih9xfjke\\pyaudio_45f725a4f6a6424489d529007194797f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\admin\AppData\Local\Temp\pip-record-gkfuqa4d\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Include\pyaudio' Check the logs for full command output.
pppery
  • 3,731
  • 22
  • 33
  • 46
  • `Microsoft Visual C++ 14.0 or greater is required`. try install from [wheel](https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio) – Lei Yang Jan 29 '22 at 08:17
  • 3
    Does this answer your question? [I can't install pyaudio on Windows? How to solve "error: Microsoft Visual C++ 14.0 is required."?](https://stackoverflow.com/questions/52283840/i-cant-install-pyaudio-on-windows-how-to-solve-error-microsoft-visual-c-14) – JoraSN Jan 31 '22 at 00:16

0 Answers0