不幸的是,我没有太多使用终端或搞乱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
我一直在搞乱链接等等,所以我肯定可能搞砸了,我愿意发布你可能需要帮助的任何其他相关信息。
提前致谢!