我的問題是類似pygame的進口錯誤OSX 10.7.5蟒蛇2.7.3
Installing Pygame for Mac OS X 10.6.8,
Pygame for Python 3.2 on mac - import error。
當我嘗試導入pygame的*,我得到ImportError: dlopen(/Library/Python/2.7/site-packages/pygame/base.so, 2): Library not loaded: @executable_path/../Frameworks/SDL.framework/Versions/A/SDL Referenced from: /Library/Python/2.7/site-packages/pygame/base.so
我想弄清楚它是否適用於我的系統。我不記得我是怎麼安裝pygame的,但如果我不port search pygame
,我得到
py-game @1.9.1 (python, devel, multimedia, graphics) py24-game @1.9.1 (python, devel, multimedia, graphics) py25-game @1.9.1 (python, devel, multimedia, graphics) py26-game @1.9.1 (python, devel, multimedia, graphics) py27-game @1.9.1 (python, devel, multimedia, graphics) py31-game @1.9.1 (python, devel, multimedia, graphics) py32-game @1.9.1 (python, devel, multimedia, graphics)
我的直覺是, port install py32-game
會解決這個問題,但它不會改變任何東西(也許蟒蛇需要以某種方式指向不同版本的pygame?)。有沒有人有我的特定配置的經驗?我不清楚如何確定我需要運行哪個pygame版本。
OSX 10.7.5 的Python 2.7.3
我試圖下載http://www.pygame.org/ftp/pygame-1.9.2pre-py2.7-macosx10.7.mpkg.zip,但它沒有解決問題。也許我的路線有問題? – jml