安装pyaudio时发生错误,提示portaudio.h找不到这样的文件

时间:2018-11-03 06:47:45

标签: python pyaudio portaudio

我正在尝试使用出现的pip消息来安装pyaudio

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\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

----------------------------------------
Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\lucifer\\AppData\\Local\\Temp\\pip-install-41y76k18\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\lucifer\AppData\Local\Temp\pip-record-limse7o7\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\lucifer\AppData\Local\Temp\pip-install-41y76k18\pyaudio\

根据http://portaudio.com/docs/v19-doxydocs/compile_windows.html尝试安装portaudio之后,我已经下载了网站上提供的文件,但是在Visual Studio中没有此类portaudio属性出现,我该怎么做才能使用python安装pyaudio和face_recorsintion模块,请帮帮我出来。我是python的新手。

0 个答案:

没有答案