我正在尝试在pyaudio
上安装VScode
,但这是我所得到的error message
。
错误:命令错误,退出状态为1: 命令:“ C:\ Users \ yaser \ AppData \ Local \ Microsoft \ WindowsApps \ PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0 \ python.exe” -u -c'导入sys,setuptools,令牌化; sys.argv [0] ='“'”'C:\ Users \ yaser \ AppData \ Local \ Temp \ pip-install-mvex6epu \ pyaudio \ setup.py'“'”'; 文件 ='“'”'C:\ Users \ yaser \ AppData \ Local \ Temp \ pip-install-mvex6epu \ pyaudio \ setup.py'“'”'; f = getattr(tokenize, '“'”'open'“'”',打开)(文件); code = f.read()。replace('“ '“'”'\\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”')))' 安装-记录 'C:\ Users \ yaser \ AppData \ Local \ Temp \ pip-record-6tgvqtqn \ install-record.txt' --single-version-externally-managed --compile --user --prefix = cwd:C:\ Users \ yaser \ AppData \ Local \ Temp \ pip-install-mvex6epu \ pyaudio \ 完整输出(17行): 运行安装 运行构建 运行build_py 创建版本 创建build \ lib.win-amd64-3.7 复制src \ pyaudio.py-> build \ lib.win-amd64-3.7 运行build_ext 建立'_portaudio'扩展名 创建build \ temp.win-amd64-3.7 创建build \ temp.win-amd64-3.7 \ Release 创建build \ temp.win-amd64-3.7 \ Release \ src D:\ VisualStudio \ VC \ Tools \ MSVC \ 14.13.26128 \ bin \ HostX86 \ x64 \ cl.exe / c / nologo / Ox / W3 / GL / DNDEBUG / MD -DMS_WIN64 = 1“ -IC:\ Program Files \ WindowsApps \ PythonSoftwareFoundation.Python.3.7_3.7.1776.0_x64__qbz5n2kfra8p0 \ include“ “ -IC:\ Program Files \ WindowsApps \ PythonSoftwareFoundation.Python.3.7_3.7.1776.0_x64__qbz5n2kfra8p0 \ include“ -ID:\ VisualStudio \ VC \ Tools \ MSVC \ 14.13.26128 \ ATLMFC \ include -ID:\ VisualStudio \ VC \ Tools \ MSVC \ 14.13.26128 \ include“ -IC:\ Program Files(x86)\ Windows Kits \ NETFXSDK \ 4.6.1 \ include \ um“” -IC:\ Program 文件(x86)\ Windows Kits \ 10 \ include \ 10.0.16299.0 \ ucrt“” -IC:\ Program 文件(x86)\ Windows Kits \ 10 \ include \ 10.0.16299.0 \ shared“” -IC:\ Program 文件(x86)\ Windows Kits \ 10 \ include \ 10.0.16299.0 \ um“” -IC:\ Program 文件(x86)\ Windows Kits \ 10 \ include \ 10.0.16299.0 \ winrt“” -IC:\ Program 文件(x86)\ Windows Kits \ 10 \ include \ 10.0.16299.0 \ cppwinrt“ /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.7\Release\src/_portaudiomodule.obj _portaudiomodule.c c:\ program files \ windowsapps \ pythonsoftwarefoundation.python.3.7_3.7.1776.0_x64__qbz5n2kfra8p0 \ include \ pyconfig.h(117): 警告C4005:“ MS_WIN64”:宏重新定义 c:\ program files \ windowsapps \ pythonsoftwarefoundation.python.3.7_3.7.1776.0_x64__qbz5n2kfra8p0 \ include \ pyconfig.h(117): 注意:命令行参数:请参阅“ MS_WIN64”的先前定义 src / _portaudiomodule.c(29):致命错误C1083:无法打开包含文件:'portaudio.h':没有此类文件或目录 错误:命令'D:\ VisualStudio \ VC \ Tools \ MSVC \ 14.13.26128 \ bin \ HostX86 \ x64 \ cl.exe' 失败,退出状态为2 ----------------------------------------错误:命令错误,退出状态为1: 'C:\ Users \ yaser \ AppData \ Local \ Microsoft \ WindowsApps \ PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0 \ python.exe' -u -c'导入sys,setuptools,标记化; sys.argv [0] ='“'”'C:\ Users \ yaser \ AppData \ Local \ Temp \ pip-install-mvex6epu \ pyaudio \ setup.py'“'”'; 文件 ='“'”'C:\ Users \ yaser \ AppData \ Local \ Temp \ pip-install-mvex6epu \ pyaudio \ setup.py'“'”'; f = getattr(tokenize, '“'”'open'“'”',打开)(文件); code = f.read()。replace('“ '“'”'\\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”')))' 安装-记录 'C:\ Users \ yaser \ AppData \ Local \ Temp \ pip-record-6tgvqtqn \ install-record.txt' --single-version-externally-managed --compile --user --prefix =检查日志以获取完整的命令输出。