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居中。