Python Forum
How to begin coding for game making [Install pygame on mac]
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to begin coding for game making [Install pygame on mac]
#1
Hello,

I am using Python 3.6 and tried putting Pygame on my MacBook Pro but could not do it. 

Is there a way to do this that is as simple as downloading?

I was trying to follow directions to use my Terminal to install it but that didn't go well. 

Can it be done on all computers by using the Terminal?
If so - can I get help for that process on this Forum?

Thanks. 

Matt
Reply
#2
Not a lot of people own macs here. Pygame has been known to be a pain in the ass to work with macs. And its usually not as simple as apt-get install python-pygame like it is in linux.

I remember with El Captain that it required a downgrade of SDL_image from 1.2.12 -> 1.2.10 but that was a year ago...not sure if that problem was fixed or not. 

You can also try this mac python install tutorial
http://kidscancode.org/blog/2015/09/pygame_install/

based off of devs

Quote:
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi 
sudo pip install hg+http://bitbucket.org/pygame/pygame
Recommended Tutorials:
Reply
#3
Hi!
I've gotten myself back into both mac and python development, and have just installed python and pygame on El Capitan.
I'm actually positively shocked how painless the whole process was!

It's as simple as:

1) install official python from python.org. I installed the latest 3.6.0. You can safely disregard the already installed mac python 2.7
2) open the terminal and type "pip3 install pygame". It should download and install the latest pygame 1.9.3.

And... thats it!
I've tested it, it does report some sort of deprecated audio library warning, but it works. Both png and jpg images load just fine.

Just make sure to include the "3" whenever you call python from the terminal. E.g. it's "python3 mygame.py"and "pip3 install something". Without it, you're calling the included version of python 2.7.
Kudos to people who worked on pygame 1.9.3 and finally made it available with pip! Thumbs Up

PS: first post here, hi everybody!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Isometric game pygame Tiled howardberger 1 586 Jan-31-2024, 10:01 PM
Last Post: deanhystad
  Coding RPG Game - Need Fresh Eyes. LastStopDEVS 3 3,123 Feb-11-2021, 05:31 PM
Last Post: nilamo
  Can't get pygame to install djwilson0495 13 10,219 Dec-07-2020, 01:30 PM
Last Post: djwilson0495
  Trying to install pygame Mac OS x high sierra giladal 2 2,739 Oct-18-2020, 09:27 PM
Last Post: nilamo
  pygame error in my clicker game CrazyMakes 2 2,548 Apr-19-2020, 03:04 AM
Last Post: Windspar
  Error to install pygame skp 1 3,483 Apr-14-2020, 05:17 PM
Last Post: joe_momma
  [PyGame] pygame, help with making a function to detect collision between player and enemy. Kris1996 3 3,325 Mar-07-2020, 12:32 PM
Last Post: Kris1996
  I need help making this game. ZodiacZNaim 1 1,744 Jan-28-2020, 12:22 PM
Last Post: metulburr
  Basically a Python Tetris game [pygame] rather keyboard arrows can be controlled with lsepolis123 9 5,097 Sep-10-2019, 08:12 PM
Last Post: metulburr
  PIP cannot install Pygame Amaly84 6 9,855 Sep-04-2019, 07:59 PM
Last Post: Amaly84

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020