(venv)C:\ Users \ Jaymoh \ PycharmProjects \ Elisanta> pip install PyAudio 使用缓存收集PyAudio https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz 安装收集的软件包:PyAudio正在运行setup.py install PyAudio ...错误 来自命令C:\ Users \ Jaymoh \ PycharmProjects \ Elisanta \ venv \ Scripts \ python.exe -u -c的完整输出 “导入设置工具, 标记化; 文件 ='C:\ Users \ Jaymoh \ AppData \ Local \ Temp \ pip-install-sp8mdmpo \ PyAudio \ setup.py'; f = getattr(tokenize,'open', 打开)(文件);代码= f.read()。replace('\ r \ n', '\ n'); f.close(); exec(compile(code, file ,'exec')))“安装- 记录 C:\ Users \ Jaymoh \ AppData \ Local \ Temp \ pip-record-jxykmy44 \ install-record.txt --single-version-外部管理-编译--install-headers C:\ Users \ Jaymoh \ PycharmProjects \ Elisa nta \ venv \ include \ site \ python3.7 \ PyAudio: 运行安装 运行构建 运行build_py 创建版本 创建build \ lib.win32-3.7 复制src \ pyaudio.py-> build \ lib.win32-3.7 运行build_ext 建立'_portaudio'扩展名 创建build \ temp.win32-3.7 创建build \ temp.win32-3.7 \ Release 创建build \ temp.win32-3.7 \ Release \ src C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ BuildTools \ VC \ Tools \ MSVC \ 14.15.26726 \ bin \ HostX86 \ x86 \ cl.exe / c / nologo / Ox / W3 / GL / DNDEBUG / MD -IC:\ Users \ Jaymoh \ PycharmProje cts \ Elisanta \ venv \ include -IC:\ Users \ Jaymoh \ AppData \ Local \ Programs \ Python \ Python37-32 \ include -IC:\ Users \ Jaymoh \ AppData \ Local \ Programs \ Python \ Python37-32 \ include“ -IC:\ Program Files( x86)\ Microsoft Visual Studio \ 2017 \ BuildTools \ VC \ Tools \ MSVC \ 14.15.26726 \ include“ “ -IC:\ Program Files(x86)\ Windows Kits \ NETFXSDK \ 4.6.1 \ include \ um” /Tcsrc/_portaudiomodule.c / Fobuild \ temp.win32-3.7 \ Release \ src / _portaudiomodule.obj _portaudiomodule.c src / _portaudiomodule.c(27):致命错误C1083:无法打开包含文件:'stdio.h':没有此类文件或目录 错误:命令'C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ BuildTools \ VC \ Tools \ MSVC \ 14.15.26726 \ bin \ HostX86 \ x86 \ cl.exe' 失败,退出状态为2
----------------------------------------命令“ C:\ Users \ Jaymoh \ PycharmProjects \ Elisanta \ venv \ Scripts \ python.exe -u -c“导入设置工具,标记化; 文件 ='C:\ Users \ Jaymoh \ AppData \ Local \ Temp \ pip-install-sp8mdmpo \ PyAudio \ setup.py'; f = getattr(tokenize,'open', 打开)(文件);代码= f.read()。replace('\ r \ n', '\ n'); f.close(); exec(compile(code, file ,'exec')))“安装 --record C:\ Users \ Jaymoh \ a ppData \ Local \ Temp \ pip-record-jxykmy44 \ install-record.txt --single-version-外部管理-编译--install-headers C:\ Users \ Jaymoh \ PycharmProjects \ Elisanta \ venv \ include \ site \ py thon3.7 \ PyAudio”失败,错误代码为1 C:\ Users \ Jaymoh \ AppData \ Local \ Temp \ pip-install-sp8mdmpo \ PyAudio \
答案 0 :(得分:0)
只需安装pipwin
由pip install pipwin
和运行
pipwin install pyaudio
答案 1 :(得分:-1)
从vs buildtools下载Windows 10 SDK,这将为您提供帮助。 下载链接:https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017 点击免费下载