Mac os更新系统后安装scrapy报错error: command ‘xcrun‘ failed with exit status 1
程序员文章站
2022-05-07 17:22:58
...
查看报错信息:
In file included from src/twisted/test/raiser.c:4:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:75:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:31:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'xcrun' failed with exit status 1
----------------------------------------
解决方法
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install # 运行完这行,系统会自动监测到并提示安装新版,所以其实不用运行这一行
问题解析
更新系统后以前的有些东西就不配套了,手动更新即可
上一篇: 读书笔记之机器学习
下一篇: windows scrapy安装过程记录