在Windows 10的Pyaudio安装中出现致命错误-C1083

时间:2018-09-25 12:00:26

标签: python fatal-error

我正在尝试在Windows 10计算机上以python 2.7.X和3.6.X版本安装PyAudio 0.2.11。

我得到an error message  如下所述:

C:\Python27\Library\PyAudio-0.2.11.tar\dist\PyAudio-0.2.11>python setup.py install
running install
running bdist_egg
running egg_info
writing src\PyAudio.egg-info\PKG-INFO
writing top-level names to src\PyAudio.egg-info\top_level.txt
writing dependency_links to src\PyAudio.egg-info\dependency_links.txt
reading manifest file 'src\PyAudio.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src\PyAudio.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building '_portaudio' extension
C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\include -IC:\Python27\PC /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-2.7\Release\src/_portaudiomodule.obj
_portaudiomodule.c
src/_portaudiomodule.c(29) : fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2

我确定缺少portaudio.h文件。我已经从链接(“ http://portaudio.com/docs/v19-doxydocs/portaudio_8h_source.html”下载了pyaudio.h文件,并将.h文件保存在src文件夹中,然后再次尝试安装该软件包。仍然会引发一些不同的错误。

为此寻求帮助。

谢谢。

谢谢 潘卡(Pankaj)

0 个答案:

没有答案