不幸的是,我没有太多使用终端或搞乱 gcc 的经验,但是在尝试安装 python 时我不断收到此错误。这是完整的消息:
building 'pygame.imageext' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -Ddarwin -I/System/Library/Frameworks/SDL.framework/Versions/Current/Headers -I/System/Library/Frameworks/SDL_image.framework/Versions/Current/Headers -I/usr/local/include -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/imageext.c -o build/temp.macosx-10.6-intel-2.7/src/imageext.o
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-arch"
error: command 'gcc-4.2' failed with exit status 1
我一直在搞乱链接等,所以绝对有可能我搞砸了,我愿意发布您可能需要帮助的任何其他相关信息。
提前致谢!