Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to install pygame on OS X Lion?

Tags:

python

pygame

I tried to install pygame via pip but this fails. Based on my google searches, it sounds like easy_install also fails.

I also checked out: http://www.pygame.org/wiki/MacLionCompile but the solution is incomplete.

I'm running python 2.7.1 bundled with Lion.

Suggestions? Appreciate the help.

like image 247
timepilot Avatar asked Sep 02 '11 19:09

timepilot


People also ask

Can you run pygame on Mac?

Installing PyGame If you don't see any errors, it means that PyGame has been successfully installed on your Mac.

Where should I install pygame?

Pygame Installation The best way to install pygame is with the pip tool (which is what python uses to install packages). Note, this comes with python in recent versions. We use the --user flag to tell it to install into the home directory, rather than globally. If it works, you are ready to go!

Which python version is best for pygame?

pygame works with most versions of Python, but Python 3.6 is recommended and used throughout this article.

Does python 3.7 support pygame?

Because the PyGame is only supported python 3.7. 7 or higher version so make sure you are using the latest version of python.


1 Answers

You could try the binary package for Lion, available on the pygame website.

It worked for me (OSX 10.7.1 with bundled Python 2.7.1)

like image 62
Marlon Avatar answered Nov 13 '22 16:11

Marlon