尽管安装了Visual Basic,为什么我仍不能安装Pyaudio?

时间:2019-10-12 19:18:19

标签: python c++ pycharm pyaudio

这是怎么回事

错误:命令'C:\ Program Files(x86)\ Microsoft Visual Studio \ 2019 \ BuildTools \ VC \ Tools \ MSVC \ 14.23.28105 \ bin \ HostX86 \ x86 \ cl.exe'失败,退出状态为2 < / p>

收集PyAudio   使用缓存的https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz 安装收集的软件包:PyAudio   为PyAudio运行setup.py安装:已启动     为PyAudio运行setup.py安装:状态为“错误”     命令C:\ Users \ aceon \ PycharmProjects \ Marvel \ venv \ Scripts \ python.exe -u -c“ import setuptools,tokenize; file ='C:\ Users \ aceon \ AppData \ Local \ Temp \ pycharm-packaging \ 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 \ aceon \ AppData \ Local \ Temp \ pip-record-xn1ju6hw \ install-record.txt-单一版本-外部管理-编译--install-headers C:\ Users \ aceon \ PycharmProjects \ Marvel \ venv \ include \ site \ python3.7 \ PyAudio:     运行安装     运行构建     运行build_py     创建版本     创建build \ lib.win32-3.7     复制src \ pyaudio.py-> build \ lib.win32-3.7     警告:build_py:禁用字节编译,正在跳过。

running build_ext
building '_portaudio' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\aceon\PycharmProjects\Marvel\venv\include -IC:\Users\aceon\AppData\Local\Programs\Python\Python37-32\include -IC:\Users\aceon\AppData\Local\Programs\Python\Python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.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)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

----------------------------------------

命令“ C:\ Users \ aceon \ PycharmProjects \ Marvel \ venv \ Scripts \ python.exe -u -c”导入设置工具,标记化; 文件 ='C:\ Users \ aceon \ AppData \ Local \ Temp \ pycharm-packaging \ 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 \ aceon \ AppData \ Local \ Temp \ pip-record-xn1ju6hw \ install-record.txt-单一版本-外部管理-编译--install-headers C:\ Users \ aceon \ PycharmProjects \ Marvel \ venv \ include \ site \ python3.7 \ PyAudio“在C:\ Users \ aceon \ AppData \ Local \ Temp \ pycharm-packaging \ PyAudio \

中失败,错误代码为1

0 个答案:

没有答案