How to solve the problem in installing pyaudio

  alexa, exitstatus, pip, python, windows

PS C:UsersAmritDocumentsPython Coding> pip install pyaudio
Collecting pyaudio
Using cached 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:UsersAmritAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0python.exe’ -u -c ‘import
sys, setuptools, tokenize; sys.argv[0] = ‘"’"’C:UsersAmritAppDataLocalTemppip-install-f0aa4j85pyaudio_bed2cc6dfee44d6a8103b043351f1de0setup.py’"’"’; file=’"’"’C:UsersAmritAppDataLocalTemppip-install-f0aa4j85pyaudio_bed2cc6dfee44d6a8103b043351f1de0setup.py’"’"’;f=getattr(tokenize, ‘"’"’open’"’"’, open)(file);code=f.read().replace(‘"’"’rn’"’"’, ‘"’"’n’"’"’);f.close();exec(compile(code, file, ‘"’"’exec’"’"’))’ bdist_wheel -d ‘C:UsersAmritAppDataLocalTemppip-wheel-bfsqre8n’
cwd: C:UsersAmritAppDataLocalTemppip-install-f0aa4j85pyaudio_bed2cc6dfee44d6a8103b043351f1de0
Complete output (9 lines):
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
copying srcpyaudio.py -> buildlib.win-amd64-3.9
running build_ext
building ‘_portaudio’ extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

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:UsersAmritAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’C:UsersAmritAppDataLocalTemppip-install-f0aa4j85pyaudio_bed2cc6dfee44d6a8103b043351f1de0setup.py’"’"’; file=’"’"’C:UsersAmritAppDataLocalTemppip-install-f0aa4j85pyaudio_bed2cc6dfee44d6a8103b043351f1de0setup.py’"’"’;f=getattr(tokenize, ‘"’"’open’"’"’, open)(file);code=f.read().replace(‘"’"’rn’"’"’, ‘"’"’n’"’"’);f.close();exec(compile(code, file, ‘"’"’exec’"’"’))’ install –record ‘C:UsersAmritAppDataLocalTemppip-record-9cvq0tq0install-record.txt’ –single-version-externally-managed –user –prefix= –compile –install-headers ‘C:UsersAmritAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39Includepyaudio’
cwd: C:UsersAmritAppDataLocalTemppip-install-f0aa4j85pyaudio_bed2cc6dfee44d6a8103b043351f1de0
Complete output (9 lines):
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
copying srcpyaudio.py -> buildlib.win-amd64-3.9
running build_ext
building ‘_portaudio’ extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/ —————————————-
ERROR: Command errored out with exit status 1: ‘C:UsersAmritAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’C:UsersAmritAppDataLocalTemppip-install-f0aa4j85pyaudio_bed2cc6dfee44d6a8103b043351f1de0setup.py’"’"’; file=’"’"’C:UsersAmritAppDataLocalTemppip-install-f0aa4j85pyaudio_bed2cc6dfee44d6a8103b043351f1de0setup.py’"’"’;f=getattr(tokenize, ‘"’"’open’"’"’, open)(file);code=f.read().replace(‘"’"’rn’"’"’, ‘"’"’n’"’"’);f.close();exec(compile(code, file, ‘"’"’exec’"’"’))’ install –record ‘C:UsersAmritAppDataLocalTemppip-record-9cvq0tq0install-record.txt’ –single-version-externally-managed –user –prefix= –compile –install-headers ‘C:UsersAmritAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39Includepyaudio’ Check the logs for full command output.

Source: Windows Questions

LEAVE A COMMENT