How do I Install Pygame on apple Os X ?

Hi

I'm installing pygame on my Mac Os X.
I have been cautious about following the instructions in this Youtube Video here
because it looks like a serious mess if it is incorrect. Is this completely correct? pip, xquartz?
It claims elsewhere that it will work with PyCharm, as well as Idle.

Thanks
LVL 1
beavoidAsked:
Who is Participating?
 
☠ MASQ ☠Commented:
PyGame has pretty good instructions on their own Wiki site
http://pygame.org/wiki/MacCompile
Yes it is correct and yes anytime you are messing with the root you can screw things up - so backups are a good idea - but follow the instructions step-by-step and you should be absolutely fine.
0
 
beavoidAuthor Commented:
I have os X 10.9.5

There isn't one there on the Pygame.com list

I've found a few install pages for it, in Google, but can't be sure which is best.


Thanks
0
 
☠ MASQ ☠Commented:
For Mavericks I'd suggest you use Homebrew
https://bitbucket.org/pygame/pygame/issue/82/homebrew-on-leopard-fails-to-install
Despite the thread name describes the process to get it working
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
beavoidAuthor Commented:
Thanks
The bitbucket link has an error

If I go back to pygame.org,

It says anything above Os X 10.3 should be fine
If I click on an appropriate .dmg install, it says I need system Python 2.7 !

Doe that make sense?

Thanks
0
 
beavoidAuthor Commented:
Look at his I found.

What is xQuartz?

here
0
 
☠ MASQ ☠Commented:
Yes you need python 2.7
(see the log in that link)

xQuartz is an open source version of X11 - the Windowing system in MacOSX
http://en.wikipedia.org/wiki/X_Window_System
0
 
beavoidAuthor Commented:
I have Python 2.7.5

This is the prompt after I type 'python' in the console:

Last login: Fri May  8 01:12:50 on console
Jamess-MacBook-Pro:~ jameshancock$ python
Python 2.7.5 (default, Mar  9 2014, 22:15:05) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Open in new window


I installed xQuartz, and on the pygame install setup, it claims I need System Python still.
In the above output, I have Python 2.7.5 !

?

Thanks
0
 
gheistCommented:
It should work with any version of python 2.7, namely one included with system is good and most importantly automatically patched.
0
 
beavoidAuthor Commented:
Thanks

Is there a way for me to query system Python's existence, install?
0
 
gheistCommented:
python --version ?
which python ?
0
 
beavoidAuthor Commented:
Python 2.7 in Pycharm 4.0.5

Thanks
0
 
beavoidAuthor Commented:
Also, am I installing in the correct location?
Does the installer know where to install PyGame automatically, or must I direct it?

Thanks
0
 
gheistCommented:
Pycharm is python module installer. Your version numbers look deliberately inaccurate. Can you get correct output of commands:
"python --version"
"which python"
?
0
 
beavoidAuthor Commented:
Thanks

Jamess-MacBook-Pro:~ jameshancock$ python --version
Python 2.7.5
Jamess-MacBook-Pro:~ jameshancock$ which python
/usr/bin/python
Jamess-MacBook-Pro:~ jameshancock$ 

Open in new window

0
 
gheistCommented:
There is pygame distribution for OSX python 2.7 on pygame site (in handy DMG format)
If that fails you can install pip or setuptools and install pygame from python archives.
0
 
beavoidAuthor Commented:
Just a post to keep the question alive, so I can respond properly when I get home from trip
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.