Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python PyAudio更新到Xcode 12后安装错误_Python_Python 3.x_Xcode_Macos_Pyaudio - Fatal编程技术网

Python PyAudio更新到Xcode 12后安装错误

Python PyAudio更新到Xcode 12后安装错误,python,python-3.x,xcode,macos,pyaudio,Python,Python 3.x,Xcode,Macos,Pyaudio,我已经更新到Xcode 12,但是当我尝试安装PyAudio时,我总是遇到如下错误: (我还尝试使用sudo安装,有和没有venv,都会出现类似的错误…) 操作系统:macOS 10.15.6(19G2021) Python:3.8 Xcode版本:12 收集pyaudio 使用缓存的PyAudio-0.2.11.tar.gz(37 kB) 使用pyaudio的旧版“setup.py install”,因为未安装程序包“wheel”。 安装收集的软件包:pyaudio 正在运行pyaudio

我已经更新到Xcode 12,但是当我尝试安装PyAudio时,我总是遇到如下错误: (我还尝试使用sudo安装,有和没有venv,都会出现类似的错误…)

  • 操作系统:macOS 10.15.6(19G2021)
  • Python:3.8
  • Xcode版本:12
收集pyaudio 使用缓存的PyAudio-0.2.11.tar.gz(37 kB) 使用pyaudio的旧版“setup.py install”,因为未安装程序包“wheel”。 安装收集的软件包:pyaudio 正在运行pyaudio的setup.py安装。。。错误 错误:命令出错,退出状态为1: 命令:/Users/userid/Desktop/Workspace/Projects/hello world/env/bin/python3-u-c'import sys、setuptools、tokenize;sys.argv[0]=“private/var/folders/dg/ppgz73fs3ml5zs4mxqtw_z_c000gn/T/pip-install-qfayqnx7/pyaudio/setup.py”文件=''''''''/private/var/folders/dg/ppgz73fs3ml5zs4mxqtw_z_c000gn/T/pip-install-qfayqnx7/pyaudio/setup.py''';f=getattr(标记化,“‘打开’”,打开)(文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,文件,“'exec'”)'install--record/private/var/folders/dg/ppgz73fs3ml5zs4mxqtw_z_c000gn/T/pip-record-8ls2_tdo/install-record.txt--外部管理的单一版本--编译--install headers/Users/userid/Desktop/Workspace/Projects/hello world/env/include/site/python3.8/pyaudio cwd:/private/var/folders/dg/ppgz73fs3ml5zs4mxqtw_z_c000gn/T/pip-install-qfayqnx7/pyaudio/ 完整输出(104行): 正在运行的安装 运行构建 运行build\u py 创建构建 创建build/lib.macosx-10.14.6-x86_64-3.8 正在复制src/pyaudio.py->build/lib.macosx-10.14.6-x86_64-3.8 运行build_ext 建筑“\u portaudio”分机 创建构建/临时macosx-10.14.6-x86_64-3.8 创建build/temp.macosx-10.14.6-x86_64-3.8/src xcrun-sdk macosx clang-Wno unused result-Wsign compare-Wunreachable code-fno common-dynamic-DNDEBUG-g-fwrapv-O3-Wall-iwithsysroot/System/Library/Frameworks/PrivateHeaders-iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers-arch arm64-arch x86_64-DMACOSX=1-I/Users/userid/Desktop/Workspace/Projects/hello world/env/include-I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/Python3.8-c src/_portaudiomodule.c-o-build/temp.macosx-10.14.6-x86_64-3.8/src/_portaudiomodule.o 在src/_portaudiomodule.c中包含的文件中:27: 在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h中包含的文件中:64: 在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h中包含的文件中:68: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2:错误:不支持的体系结构 #错误:不支持的体系结构 ^ 在src/_portaudiomodule.c中包含的文件中:27: 在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h中包含的文件中:64: 在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h中包含的文件中:71: 在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27中包含的文件中: 在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33中包含的文件中: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2:错误:不支持体系结构 #错误架构不受支持 ^ 在src/_portaudiomodule.c中包含的文件中:27: 在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h中包含的文件中:64: 在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h中包含的文件中:71: 在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27中包含的文件中: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9:错误:未知类型名称“\uu int64\t” typedef\uuuu int64\uu t\uuuuu darwin\u blkcnt;/*总块数/ ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9:错误:未知类型名称“u int32_t”;你的意思是“\uu int128\t”? typedef\uuuu int32\uu t\uuuu darwin\u blksize\u t;/首选块大小/ ^ 注意:“\uu int128\u t”在此处声明 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9:错误:未知类型名称“u int32_t”;你的意思是“\uu int128\t”? typedef\uuuu int32\uu t\uuuuu darwin\u dev\u t;/发展/ ^ 注意:“\uu int128\u t”在此处声明 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9:错误:未知类型名称“u uint32_t”;你是说“你的意思是”吗? typedef\uuuu uint32\uu t\uuuu darwin\u gid\u t;/[???]进程和组ID/ ^ 注:此处声明“\uu uint128\u t” /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9:错误:未知类型名称“u uint32_t”;你是说“你的意思是”吗? typedef\uuuu uint32\uu t\uuuu darwin\u id\u t;/[XSI]pid\u t、uid\u t或gid\t*/ ^ 注:此处声明“\uu uint128\u t” /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_-types.h:62:9:错误:未知类型名称“\uu-uint6”