Example
How to install PyGame for Python 3 PyGame is a set of python modules designed for writing games. It uses the SDL library to allow you to create games and multimedia programs in Python. Go to the pygame downloads page and scroll down to the Mac section. Find the download titled Lion apple supplied python: pygame-1.9.2pre-py2.7-macosx10.7.mpkg.zip and download and install it. It says Lion, but it will work with Yosemite. Creating a short sample pygame.
On windows
![Windows Windows](https://images2015.cnblogs.com/blog/758915/201704/758915-20170424195048975-1907198853.png)
- Navigate to http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame – an unofficial site providing windows binaries of open-source python packages for the official CPython distribution by Christoph Gohlke.
- Download the appropriate pygame
.whl
file according to your installed python version. (The file is named something likepygame -
<pygame version> - <python version>
- win32.whl
) - Runinside your terminal, bash or consol.
Note: ifpip
is not found inPATH
try to runpython -m pip install your-pygame-package.whl
- Check if you can import pygame as a python moduleIf you do not get an error, you have correctly installed pygame on your computer :)
On linux
- Open your terminal and run Duplicate annihilator mac free download.Note: This will install pygame for python2
- Try to import pygame insideIf you do not get an error, you have correctly installed pygame on your linux system :)
On macOS
There are two ways to install it on mac:
Method 1 2012 international fire code pdf free download.
Go to the Pygame downloads page and download the mac installer. Run it, and it should install Pygame on your Mac. Download hulu movies to mac.
Pygame Install Windows
Method 2
Install Homebrew:
Then use Homebrew to install Python 2.7.12 and Pygame:
Now run Python in your terminal and try
import pygame
. If it does not say anything, it's installed successfully.How To Download Pygame On Macbook
Related Tags