2012-03-30 67 views
2

我想在Mac OS X 10.6.8上使用Enthought 7.2 64位python發行版來安裝Pygame。在OS X 10.6.8上安裝pygame與EPD enthought 7.2

pygame安裝程序沒有看到我安裝了Enthought並且無法正常工作。

然後我手動安裝了SDL,SDL_image,SDL_mixer和SDL_ttf框架以及libjpeg和libpng庫。

安裝pygame的,然後通過pip的嘗試產生錯誤的巨量:關於這一主題的

gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -O3 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -Ddarwin -I/Library/Frameworks/SDL.framework/Versions/Current/Headers -I/Library/Frameworks/SDL_image.framework/Versions/Current/Headers -I/usr/local/include -I/usr/local/include -I/Library/Frameworks/EPD64.framework/Versions/7.2/include/python2.7 -c src/imageext.c -o build/temp.macosx-10.5-x86_64-2.7/src/imageext.o 

In file included from /Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL_main.h:26, 

       from /Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL.h:30, 

       from src/pygame.h:106, 

       from src/imageext.c:47: 

/Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL_stdinc.h:155:24: error: begin_code.h: No such file or directory 

In file included from /Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL_main.h:26, 

       from /Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL.h:30, 

       from src/pygame.h:106, 

       from src/imageext.c:47: 

/Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL_stdinc.h:370: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ 

40-50更多的變化。我對Enthought非常滿意,因爲它開箱即用,所以我想阻止從macports或brew再次開始。任何人有任何想法?

編輯 因爲誰也說不清楚,我開始了與獅子時,Xcode 4.3,在命令行工具從蘋果,this so tip(!),一個新的MacPorts Python環境周圍Python版本2.7居中。

回答

0

嗯。我不明白你爲什麼試圖安裝其他東西,但如果你正在嘗試安裝它並出現問題,我建議你卸載Enthought 7.2 64位,然後在安裝pygame時重新安裝它。