Loading...

How to Install PyGame on a Mac

Installing PyGame on a Mac OS

This blog will tell you how you can install PyGame on a Mac OS

Sep 21, 2018    By Team YoungWonks

In this blog, we shall look at the procedure to install PyGame on a Mac OS (Operating System). Now PyGame is cross-platform set of modules in the Python programming language. These modules are designed for writing video games. Thus PyGame includes computer graphics and sound libraries that have been created to be used with the Python programming language.

Now how do we do install PyGame on a Mac? This blog will tell you how…

Installation of PyGame on Mac: 

  • Start by opening Spotlight search bar on your Mac. You can do this by taking your cursor to the top right corner of your desktop and clicking on the magnifying glass icon. 


  • Once you have opened the Spotlight search bar, type terminal in the bar to open terminal. 



  • Now type pip3. 



  • If you see a bunch of general options on the screen, it means that pip is already installed on your MacBook. 



  • Now type pip3 install pygame as shown in this (below) image. 



  • The installation will start at this point and you need to wait till the PyGame installation is done. You’ll know it’s done when you see a message (as shown below) saying successfully installed pygame.



  • To test if PyGame has been installed on your Mac, open IDLE by typing IDLE in your Spotlight search bar.  



  • Then type import pygame as shown in the image. 



  • If you do not see any error, it means that PyGame has been successfully installed on your Mac.  


 

Shared below is a video explaining how one can install PyGame on one's Mac:

This blog is presented to you by YoungWonks. The leading coding program for kids and teens.

YoungWonks offers instructor led one-on-one online classes and in-person classes with 4:1 student teacher ratio.

Sign up for a free trial class by filling out the form below:

By clicking the "Submit" button above, you agree to the privacy policy
help