小编mg.*_*mg.的帖子

如何修复错误 pip install 在 mac 上扭曲?

我正在尝试在 mac 10.15.6、python 3.8 上 pip install twisted 遇到一堆架构不支持的错误(例如,__uint32_t 未知)。

这是我运行 pip install twisted 时的输出:

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/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -I/Users/damon/workspace/trial/crawlers/venv/include -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c src/twisted/test/raiser.c -o build/temp.macosx-10.14.6-x86_64-3.8/src/twisted/test/raiser.o
    In file included from src/twisted/test/raiser.c:4:
    In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h:63:
    /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/twisted/test/raiser.c:4:
    In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
    In …
Run Code Online (Sandbox Code Playgroud)

macos twisted python-3.x

2
推荐指数
2
解决办法
980
查看次数

标签 统计

macos ×1

python-3.x ×1

twisted ×1