Xcode 12로 업데이트 한 후 PyAudio 설치 오류
나는 Xcode 12로 업데이트되었지만 PyAudio를 설치하려고 할 때 항상 다음과 같은 오류가 발생했습니다. (또한 sudo, venv 유무에 관계없이 설치하려고 시도했지만 이와 같은 오류가 발생했습니다 ...)
- 운영체제 : macOS 10.15.6 (19G2021)
- 파이썬 : 3.8
- Xcode 버전 : 12
캐시 된 PyAudio-0.2.11.tar.gz를 사용하여 pyaudio 수집 (37 kB) 'wheel'패키지가 설치되지 않았기 때문에 pyaudio에 레거시 'setup.py install'을 사용합니다. 수집 된 패키지 설치 : 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_c0000gn/T/pip-install-qfayqnx7/pyaudio/setup.py' " '"'; file = ' "'" '/ private / var / folders / dg / ppgz73fs3ml5zs4mxqtw_z_c0000gn / T / pip-install-qfayqnx7 / pyaudio / setup.py' " '"'; f = getattr (tokenize, ' "'" 'open' " '"', open) ( file ); code = f.read (). replace ( ' "'" '\ r \ n' " '"', ' "'" '\ n' " '"'); f.close (); exec (compile (코드, 파일, ' "'" 'exec' " '"')) 'install --record /private/var/folders/dg/ppgz73fs3ml5zs4mxqtw_z_c0000gn/T/pip-record-8ls2_tdo/install-record.txt --single-version-externally -managed --compile --install-headers /Users/userid/Desktop/Workspace/Projects/hello-world/env/include/site/python3.8/pyaudio cwd : / private / var / folders / dg / ppgz73fs3ml5zs4mxqtw_z_c0000gn / T / pip-install-qfayqnx7 / pyaudio / 전체 출력 (104 줄) : run install running build running build_py create build create / lib.macosx-10.14.6-x86_64-3.8 copying src / pyaudio.py-> build / lib. macosx-10.14.6-x86_64-3.8 build_ext 빌드 '_portaudio'확장 빌드 빌드 /temp.macosx-10.14.6-x86_64-3.8 빌드 작성 /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 / System.framework / PrivateHeaders -iwithsysroot / Applications / Xcode.app/Contents/Developer/Library/Frameworks/Pyth on3.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 : error : Unsupported architecture #error Unsupported architecture ^ in file included from src / _portaudiomodule.c : 27 : /Applications/Xcode.app/Contents/Developer/Platfor에 포함 된 파일 ms / 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 : 오류 : 아키텍처가 지원되지 않음 #error 아키텍처 지원되지 않음 ^ 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 : 오류 : 알 수없는 유형 이름 '__int64_t'typedef __int64_t __darwin_blkcnt_t; / * 총 블록 / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9 : 오류 : 알 수 없음 유형 이름 '__int32_t'; '__int128_t'를 의미 했습니까? typedef __int32_t __darwin_blksize_t; / 기본 블록 크기 / ^ 참고 : '__int128_t'여기에 선언 됨 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h : 57 : 9 : 오류 : 알 수없는 유형 이름 '__int32_t'; '__int128_t'를 의미 했습니까? typedef __int32_t __darwin_dev_t; / dev_t / ^ 참고 : 여기에 '__int128_t'선언 됨 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60 : 9 : 오류 : 알 수없는 유형 이름 '__uint32_t'; '__uint128_t'를 의미 했습니까? typedef __uint32_t __darwin_gid_t; / [???] 프로세스 및 그룹 ID / ^ 참고 : 여기에 '__uint128_t'선언 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ sys / _types.h : 61 : 9 : 오류 : 알 수없는 유형 이름 '__uint32_t'; '__uint128_t'를 의미 했습니까? typedef __uint32_t __darwin_id_t; / [XSI] pid_t, uid_t 또는 gid_t * / ^ 참고 : '__uint128_t'여기에 선언 됨 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include /sys/_types.h:62:9 : 오류 : 알 수없는 유형 이름 '__uint64_t'typedef __uint64_t __darwin_ino64_t; / * [???] 64 비트 inode에 사용됨/ ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9 : 오류 : 알 수없는 유형 이름 '__darwin_natural_t 'typedef __darwin_natural_t __darwin_mach_port_name_t; / mach에서 사용됨 / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9 : 오류 : 알 수 없음 유형 이름 '__uint16_t'; '__uint128_t'를 의미 했습니까? typedef __uint16_t __darwin_mode_t; / [???] 일부 파일 속성 / ^ 참고 : '__uint128_t'여기에 선언 됨 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys /_types.h:71:9 : 오류 : 알 수없는 유형 이름 '__int64_t'typedef __int64_t __darwin_off_t; / [???] 파일 크기에 사용됨 / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72 : 9 : 오류 : 알 수없는 유형 이름 '__int32_t'; '__int128_t'를 의미 했습니까? typedef __int32_t __darwin_pid_t; / [???] 프로세스 및 그룹 ID / ^ 참고 : '__int128_t'여기에 선언 됨 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ sys / _types.h : 73 : 9 : 오류 : 알 수없는 유형 이름 '__uint32_t'; '__uint128_t'를 의미 했습니까? typedef __uint32_t __darwin_sigset_t; / [???] 신호 세트 / ^ 참고 : '__uint128_t'여기에 선언 됨 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ _types.h : 74 : 9 : 오류 : 알 수없는 유형 이름 '__int32_t'; '__int128_t'를 의미 했습니까? typedef __int32_t __darwin_suseconds_t; / [???] 마이크로 초 / ^ 참고 : 여기에 '__int128_t'선언 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types .h : 75 : 9 : 오류 : 알 수없는 유형 이름 '__uint32_t'; '__uint128_t'를 의미 했습니까? typedef __uint32_t __darwin_uid_t; / [???] 사용자 ID / ^ 참고 : 여기에 '__uint128_t'선언 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ _types.h : 76 : 9 : 오류 : 알 수없는 유형 이름 '__uint32_t'; '__uint128_t'를 의미 했습니까? typedef __uint32_t __darwin_useconds_t; / [???] 마이크로 초 * / ^ 참고 : '__uint128_t'여기에 선언 됨 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:43:9 : 오류 : 알 수없는 유형 이름 '__uint32_t'; '__uint128_t'를 의미 했습니까? typedef __uint32_t __darwin_wctype_t; ^ 참고 : '__uint128_t'선언 됨 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에서 포함 된 파일 : 75 : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31 : / Applications /에 포함 된 파일 Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2 : 오류 : 아키텍처가 지원되지 않음 # 오류 아키텍처가 지원되지 않음 ^ In 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/Develope에 포함 된 파일 r / Platforms / MacOSX.platform / Developer / SDKs / MacOSX10.15.sdk / usr / include / _stdio.h : 75 : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10 .15.sdk / usr / include / sys / _types / _va_list.h : 32 : 9 : 오류 : 알 수없는 유형 이름 '__darwin_va_list'typedef __darwin_va_list va_list; ^ 치명적 오류 : 너무 많은 오류가 발생하여 이제 중지됨 [-ferror-limit =] 20 개의 오류가 생성되었습니다. 오류 : 'xcrun'명령이 종료 상태 1로 실패했습니다 .--------------------------------------- -오류 : 종료 상태 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_c0000gn/T/pip-install-qfayqnx7/pyaudio/setup.py' " '"'; file = ' "'" '/ private / var / folders / dg / ppgz73fs3ml5zs4mxqtw_z_c0000gn / T / pip-install-qfayqnx7 / 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 / private / var / folders / dg / ppgz73fs3ml5zs4mxqtw_z_c0000gn / T / pip-record-8ls2_tdo /install-record.txt --single-version-externally-managed --compile --install-headers /Users/userid/Desktop/Workspace/Projects/hello-world/env/include/site/python3.8/pyaudio Check 전체 명령 출력에 대한 로그.
누구든지 도울 수 있습니까? 감사!
답변
환경 변수를 내 보내서이 문제를 해결할 수있었습니다.
export ARCHFLAGS="-arch x86_64"