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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

☠ 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Python

From novice to tech pro — start learning today.