Thanks for the A2A Both Pyglet and Pygame are available on PyPi.python.org which means you should be able to just use pip to install them. You don’t mention which platform you’re on, so I suggest checking their documentation to be sure of the deta. Ubuntu - pygame is available through apt-get in the Universe (1.9.1) Gentoo - pygame is available in the portage system (1.9.1 + 1.9.2prerelease) Fedora - Package repositories have support for pygame (1.9.1) Suse - The Yast package system has pygame (updated to 1.9.1) OLPC. The Pygame download site presently has packages for Python 2.4, 2.5, 2.6 and 2.7 for OS X, but none for Python 3 (3.2 to be precise). This is odd, as everyone is doing Python 3 development these days, don't you think? And there even is an installer for Python 3 on MS Windows. Python pygame 2.7 can be downloaded from our software library for free. The following versions: 2.7, 1.9 and 1.8 are the most frequently downloaded ones by the program users. The software lies within Multimedia Tools, more precisely Editors & Converters. Downloads Downloads; Tags; Branches; Name Size Uploaded by Downloads Date; Download repository. The official home of the Python Programming Language.
Example
![Install pygame on mac Install pygame on mac](/uploads/1/2/5/0/125041698/778539299.jpg)
On windows
-
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 runNote: This will install pygame for python2
-
Try to import pygame insideFlash player dmg auto download virus. If 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
Go to the Pygame downloads page and download the mac installer. Run it, and it should install Pygame on your Mac.
Method 2
How To Get Pygame
![How How](/uploads/1/2/5/0/125041698/196260329.jpg)
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.
Install Pygame
Related Tags