How to install PyGame on the Mac OS X El Capitan 10.11.1. Install Anaconda 2.7; Get the SDL Framework run dmg and copy to /Library/Frameworks; brew install sdl note you need Homebrew installed; Ensure you have XCODE and latest Command Line Tools for XCODE; Open Terminal and run. Conda update conda. Conda create -n py27 python. Source activate py27. I recently installed PyGame 1.9.1 on Mac OS X 10.6 (Snow Leopard) running Python 3.1 - (instructions at the bottom of the page. Cheers, and good luck! (Paul Barry, Dec 2009). A method of installing pygame on Mac OS X 10.7 (Lion) Here's how I installed PyGame 1.9.1 on Mac OS X 10.6 (Snow Leopard) for Python 2.7.2. Mountain Lion install. This will also install Pygame. Pre-compiled Pygame packages are available to pip for Windows & Linux (32-bit and 64-bit), and for Mac OS (64-bit only). If you have a different system, you’ll need to find a way to install pygame first.
The only guide you need to learn how to install pygame using pip on Windows 10, Mac and Linux.
Guide to installing pygame
The official pygame documentation recommends using pip for installation. Pip is a package management system that allows you to install and modify software packages written in python. Below I cover how to install pip on each operating system and then how to use pip for installing pygame.Note: python 3.6.1 or greater is recommended. You can get the relevant python installers from their website.
Install pygame for Windows 10
The windows python installer gives you the option to install pip alongside python. The installer will look like below, make sure to tick the box that says “Add Python 3.x to PATH”. You can then proceed through the installation as normal as this will install pip by default.Once the python installation is finished, open a command prompt. Firstly, we need to update pip:We can then install pygame using pip:
Install pygame for Mac
The Mac installation is a bit different from the others. Depending on which installer was used for python it may or may not have installed pip. We can check if pip is installed with the following:If this command gives a version number and directory then pip is installed and you can skip the below step. If you don’t have pip installed then follow the instructions below. Firstly, download get-pip.py:…and then run it:You can then update pip to the latest version using:And finally installing pygame:Please note where I have used “pip” in the above two commands if the command doesn’t work try replacing “pip” with “pip3”. So “sudo pip install pygame” would turn into “sudo pip3 install pygame”. Same with “python” and “python3”, so “python get-pip.py” would turn into “python3 get-pip.py”.
Install pygame for Linux (Ubuntu-based)
The first step to the Linux installation is checking if pip is installed:
If this command gives a version number and directory then pip is installed and you can skip the below step. If this command throws an error then you need to install pip:
You can then update pip:Finally, install pygame:
Testing your installation works
Pygame comes with a built in-game, you can run this using:or
Pygame For Python 3.6
If something similar to the above appears, you’re good to go! On the other hand, if something has gone wrong, feel free to check the official documentation or comment below. Good luck!This is the first tutorial in our pygame basics playlist. In the next tutorial, we cover how to get started with your first game. If you’re looking to get started with pygame this is a great place to start!Next tutorialPrevious tutorial
Share this:
Like this:
Like
Pygame Download Mac
Loading...
Pip Install Pygame Mac
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.