Install Pygame Zero or Pygame in Python3
Install Pygame Zero or Pygame in Python3
pygame is a free and open-source cross-platform library for the development of multimedia applications like video games using Python. It uses the Simple DirectMedia Layer library and several other popular libraries to abstract the most common functions, making writing these programs a more intuitive task.
On Ubuntu Linux
Add the PPA to your system sources:
Update the package list:
Install the package:
Install Pygame Zero with pip:
On Windows
Install Pygame for Python 3. This is available as a .msi installer from the Pygame Bitbucket.
Install Pygame Zero with pip:
On OSX
homebrew is a package manager for OSX. It will allow you to install nearly everything you need to get Pygame Zero up and running.
All commands will be entered in a Terminal window.
Install homebrew:
Install Python 3:
Install the following dependencies, needed for compiling Pygame:
Now pygame can be installed easily using Python’s own package manager, pip3:
Finally, install Pygame Zero!
On Raspberry Pi
pgzero is likely to make an appearance in the Raspbian repo before long; until then...
(Starting from a vanilla noobs-install Raspbian)
- sudo apt-get update
- sudo apt-get install python3-setuptools python3-pip
- sudo pip-3.2 install pgzero
Install the dependencies:
Grab Pygame source:
Build Pygame:
Install Pygame:
Install Pygame Zero with pip:
Comments
Post a Comment