无法在Mac上安装python,cc1:错误:无法识别的命令行选项“-arch”

时间:2013-03-07 02:31:00

标签: macos gcc python-2.7 terminal pygame

不幸的是,我没有太多使用终端或搞乱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

我一直在搞乱链接等等,所以我肯定可能搞砸了,我愿意发布你可能需要帮助的任何其他相关信息。

提前致谢!

0 个答案:

没有答案