#185·japronto

无法在 Mac M1 上安装 japronto

作者: eshafik创建于 2022年2月22日更新于 2022年11月5日

我尝试了这个方法 - python3 setup.py install

错误消息: `/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:14:2: 错误: 此头文件仅适用于 x86 #error this header is for x86 only ^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:286:5: 错误: asm 中的输出约束 '=a' 无效 __cpuid(__leaf, __eax, __ebx, __ecx, __edx); ^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:251:11: 注意: 扩展了宏 '__cpuid' : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx)
^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:301:5: 错误: asm 中的输出约束 '=a' 无效 __cpuid(__leaf, *__eax, *__ebx, *__ecx, *__edx); ^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:251:11: 注意: 扩展了宏 '__cpuid' : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx)
^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:315:5: 错误: asm 中的输出约束 '=a' 无效 __cpuid_count(__leaf, __subleaf, *__eax, *__ebx, *__ecx, *__edx); ^ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/cpuid.h:258:11: 注意: 扩展了宏 '__cpuid_count' : "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx)
^ 4 个错误产生。

内容来源: squeaky-pl/japronto