Skip to content Skip to sidebar Skip to footer

Pygame For Python 3.2 On Mac - Import Error

I have been attempting to install the pygame module on my macbook pro running snow leapord. the python version i am running on is 3.2 I have been following instructions from here i

Solution 1:

You have a fancy computer there, Barvazos. And the instructions you have there (circa 2009) say nothing about 64-bit architectures (or 32 bit versus 64 bit universal builds & libraries), which is now a consideration that developers have to care about these days.

If this were my problem, my first attempt to fix this would be to change "Step 6" on Paul Barry's instruction sheet (which you linked to in your question) to say:

export CC='/usr/bin/gcc-4.2'CFLAGS='-isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64'

(in case it's not clear, the thing that I added to that Step 6 line is the -arch x86_64 bit)

And if this does turn out to be the solution, e-mail the author of that instruction sheet and tell him to update that PDF file to be relevant for 2012. He'd probably appreciate the support. I hope this answer helps you out!

Solution 2:

I have successfully installed pygame on osx lion using the following instructions https://bitbucket.org/pygame/pygame/issue/82/homebrew-on-leopard-fails-to-install#comment-627494

Post a Comment for "Pygame For Python 3.2 On Mac - Import Error"