Help me install PYgame on Python 3.3.3 IDLE

Hi

I like Python and pygame :) (pygame youtubes look sweet)
I want to use the current forefront language.
I have Python 3.3.3 working
It is just a console, shell, like Apple II e basic, not an IDE. ?
What is the best way to install pygame for 3.3.3 ?
There are os X releases on pygame.org,
but I don't want to find out the hard way I used the wrong download.
How should I proceed? How do they connect?

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.

beavoidAuthor Commented:
This has Pygame, but version 1.9

here

Dont I want 2.2   ? for most recent add ons?
Pasha KravtsovSupport EngineerCommented:
If you're on OS X you can use any IDE/text editor to create .py files.
Example:
vim game.py

Open in new window

Then enter a semi colon ':' and type wq which saves and exits the file now you have a python game file which you can either double click or run by doing "python game.py" in the terminal

To install pygame you should install easy_install which installs python libraries for you:
(Do these commands one by one in the terminal)
curl https://bootstrap.pypa.io/ez_setup.py -o - | python
python ez_setup.py
easy_install pygame

Open in new window

beavoidAuthor Commented:
Thanks

I seem to get :  

SyntaxError: invalid syntax

on those lines

How do I check to see if the Terminal is properly connected to python?
thx
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

Pasha KravtsovSupport EngineerCommented:
Sorry, I should of been more clear for you to use the OS X terminal not the python terminal.
beavoidAuthor Commented:
Thanks

Insane . . .  I get

Last login: Thu Aug 28 22:31:52 on ttys001
Jamess-MacBook-Pro:~ johnhancock$ curl https://bootstrap.pypa.io/ez_setup.py -o - | python
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10476  100 10476    0     0  10851      0 --:--:-- --:--:-- --:--:-- 18673
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-5.7.zip
Extracting in /var/folders/1s/_bv1k86n2lq6ld9m00cb6l180000gn/T/tmpzSl211
Now working in /var/folders/1s/_bv1k86n2lq6ld9m00cb6l180000gn/T/tmpzSl211/setuptools-5.7
Installing Setuptools
running install
Checking .pth file support in /Library/Python/2.7/site-packages/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-1205.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Library/Python/2.7/site-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://pythonhosted.org/setuptools/easy_install.html

Please make the appropriate changes for your system and try again.

Something went wrong during the installation.
See the error message above.
Jamess-MacBook-Pro:~ jameshancock$ curl https://bootstrap.pypa.io/ez_setup.py -o - | python
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10476  100 10476    0     0  17658      0 --:--:-- --:--:-- --:--:-- 52909
Extracting in /var/folders/1s/_bv1k86n2lq6ld9m00cb6l180000gn/T/tmpZDxjqc
Now working in /var/folders/1s/_bv1k86n2lq6ld9m00cb6l180000gn/T/tmpZDxjqc/setuptools-5.7
Installing Setuptools
running install
Checking .pth file support in /Library/Python/2.7/site-packages/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-1221.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Library/Python/2.7/site-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://pythonhosted.org/setuptools/easy_install.html

Please make the appropriate changes for your system and try again.

Something went wrong during the installation.
See the error message above.
Jamess-MacBook-Pro:~ jameshancock$ easy_install pygame
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-1229.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Library/Python/2.7/site-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  http://peak.telecommunity.com/EasyInstall.html

Please make the appropriate changes for your system and try again.

Jamess-MacBook-Pro:~ jameshancock$ 

Open in new window


In System Preferences, I have administrator rights, and I can't see why it wont let me install.
Ideas?

Thanks
Pasha KravtsovSupport EngineerCommented:
Try:
curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python

Open in new window

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
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.