unable to import pygame

流过昼夜 提交于 2019-11-30 21:28:07

I admit this is a guess, but could this be a 32 vs. 64 bit issue?

If I do:

file /usr/bin/python

I get:

python: Mach-O universal binary with 2 architectures
python (for architecture x86_64):   Mach-O 64-bit executable x86_64
python (for architecture i386): Mach-O executable i386

Wondering what you see on your add-in file?

For example, if it's 32 bit, then run Python that mode:

arch -i386 /usr/bin/python

If that's not exactly it, at least this will hopefully get you in the right direction.

This was a 32 bit vs 64 bit issue for me. I followed the directions listed here: http://web.mit.edu/6.090/www/pygame.html and the issue was resolved.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!