использование pip:
C:UsersDELLAppDataLocalProgramsPythonPython37-32Scripts>pip install pyaudio
выход:
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz
Building wheels for collected packages: pyaudio
Running setup.py bdist_wheel for pyaudio ... error
Complete output from command c:usersdellappdatalocalprogramspythonpytho
n37-32python.exe -u -c "import setuptools, tokenize;__file__='C:UsersDELL
AppDataLocalTemppip-build-2wt7vi91pyaudiosetup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(comp
ile(code, __file__, 'exec'))" bdist_wheel -d C:UsersDELLAppDataLocalTemptm
pos8y8pmgpip-wheel- --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win32-3.7
copying srcpyaudio.py -> buildlib.win32-3.7
running build_ext
building '_portaudio' extension
creating buildtemp.win32-3.7
creating buildtemp.win32-3.7Release
creating buildtemp.win32-3.7Releasesrc
C:Program Files (x86)Microsoft Visual Studio 14.0VCBINcl.exe /c /nologo /
Ox /W3 /GL /DNDEBUG /MD -Ic:usersdellappdatalocalprogramspythonpython37-3
2include -Ic:usersdellappdatalocalprogramspythonpython37-32include "-IC
:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Fil
es (x86)Windows Kitsinclude.0.10240.0ucrt" "-IC:Program Files (x86)Wi
ndows Kits.1includeshared" "-IC:Program Files (x86)Windows Kits.1includ
eum" "-IC:Program Files (x86)Windows Kits.1includewinrt" /Tcsrc/_portaudi
omodule.c /Fobuildtemp.win32-3.7Releasesrc/_portaudiomodule.obj
_portaudiomodule.c
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'port
audio.h': No such file or directory
error: command 'C:Program Files (x86)Microsoft Visual Studio 14.0VCBIN
cl.exe' failed with exit status 2
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
Complete output from command c:usersdellappdatalocalprogramspythonpyt
hon37-32python.exe -u -c "import setuptools, tokenize;__file__='C:UsersDELL
AppDataLocalTemppip-build-2wt7vi91pyaudiosetup.py';f=getattr(tokeniz
e, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(co
mpile(code, __file__, 'exec'))" install --record C:UsersDELLAppDataLocalTem
ppip-04qjfess-recordinstall-record.txt --single-version-externally-managed --c
ompile:
running install
running build
running build_py
creating build
creating buildlib.win32-3.7
copying srcpyaudio.py -> buildlib.win32-3.7
running build_ext
building '_portaudio' extension
creating buildtemp.win32-3.7
creating buildtemp.win32-3.7Release
creating buildtemp.win32-3.7Releasesrc
C:Program Files (x86)Microsoft Visual Studio 14.0VCBINcl.exe /c /nologo
/Ox /W3 /GL /DNDEBUG /MD -Ic:usersdellappdatalocalprogramspythonpython37
-32include -Ic:usersdellappdatalocalprogramspythonpython37-32include "-
IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program F
iles (x86)Windows Kitsinclude.0.10240.0ucrt" "-IC:Program Files (x86)
Windows Kits.1includeshared" "-IC:Program Files (x86)Windows Kits.1incl
udeum" "-IC:Program Files (x86)Windows Kits.1includewinrt" /Tcsrc/_portau
diomodule.c /Fobuildtemp.win32-3.7Releasesrc/_portaudiomodule.obj
_portaudiomodule.c
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'po
rtaudio.h': No such file or directory
error: command 'C:Program Files (x86)Microsoft Visual Studio 14.0VCB
INcl.exe' failed with exit status 2