Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70579
| From | Gregory Ewing <greg.ewing@canterbury.ac.nz> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Installing PyGame? |
| Date | 2014-04-25 13:44 +1200 |
| Message-ID | <brtt0jF10jjU1@mid.individual.net> (permalink) |
| References | <5c069831-8cab-43da-a4f9-ccec68cdc101@googlegroups.com> <c1bf68bd-9952-4f9d-880d-2204944f6d98@googlegroups.com> |
rohit782192@gmail.com wrote: > On Saturday, June 8, 2013 9:37:44 PM UTC+5:30, Eam onn wrote: > >> Now I have a bigger problem: HOW THE HECK >> DO I INSTALL PYGAME!?!?! System Details: >> >> I've tried using MacPorts, Fink, the Mac DMG, >> source installing, installing NumPY, just about every way possible. My advice would be to steer clear of things like Fink and MacPorts and do things the native MacOSX way wherever possible. That means using a framework installation of Python and framework versions of the various libraries that PyGame uses. There are a number of steps to getting pygame working: 1) Make sure you have a working framework installation of an appropriate version of Python. I installed mine from source, but a binary installation should work too. Depending on your MacOSX version, the system python might be sufficient. 2) Install framework versions of the SDL library and other libraries that pygame uses. You may need to hunt around a bit, but you should be able to find DMG installers for all of these. In my /Library/Frameworks I have: SDL.framework SDL-QD.framework SDL_image.framework SDL_mixer.framework SDL_net.framework SDL_ttf.framework 3) Install pygame itself with the usual 'python setup.py install'. If you have all the relevant libraries, the installer will auto detect them and use them. At the end, it will tell you which ones it couldn't find. Pygame will work without some of them, but those features won't be available. You can add more libraries and run setup.py again if you need to. 4) Specific games may require other Python libraries such as Numpy etc. -- Greg
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Installing PyGame? rohit782192@gmail.com - 2014-04-24 08:32 -0700
Re: Installing PyGame? Terry Reedy <tjreedy@udel.edu> - 2014-04-24 15:15 -0400
Re: Installing PyGame? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-04-25 01:17 +0000
Re: Installing PyGame? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-04-25 13:47 +1200
Re: Installing PyGame? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-04-25 13:44 +1200
Re: Installing PyGame? Ned Deily <nad@acm.org> - 2014-04-24 19:38 -0700
Re: Installing PyGame? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-04-26 11:42 +1200
Re: Installing PyGame? Andrea D'Amore <anddamNOALPASTICCIODICARNE+gruppi@brapi.net> - 2014-04-26 09:07 +0200
Re: Installing PyGame? Ryan Hiebert <ryan@ryanhiebert.com> - 2014-04-24 22:59 -0500
Re: Installing PyGame? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-04-26 11:57 +1200
Re: Installing PyGame? Andrea D'Amore <anddamNOALPASTICCIODICARNE+gruppi@brapi.net> - 2014-04-26 08:57 +0200
csiph-web