Hey guys, in this video I explain how to download and install pygame on a mac osx computer. This is extremely simple and fast and should not take you more than 3 minutes. Dec 19, 2014 - It's somewhat difficult to find instructions on how to successfully install Pygame for Python 3 on Yosemite. The front page of the Pygame website.
Python3 -m pygame.examples.aliens If it works, you are ready to go! Continue on to the. Further information if you need it. Hopefully the installation instructions above worked for you. If not, please read some alternative installation methods, and extra details below. Are available for x86 and x64 architectures on Linux and Windows, and for x64 on Mac. If pip doesn't find a wheel for your platform, it will try to compile pygame from source (see below).
![Python Python](https://image.slidesharecdn.com/installingpythononmac-170227010115/95/installing-python-on-mac-12-638.jpg?cb=1488157529)
Pygame requires a 'newer' pip. If pygame starts compiling from source and fails, first try. Raspberry Pi This comes with pygame already installed on the default raspbian installation. Windows installation Make sure you install python3.6 with the 'Add python 3.6 to PATH' option selected. This means that python, and pip will work for you from the command line.
There is documentation with python for the '. # create a virtualenv called 'anenv' and use it.
Python3 -m virtualenv anenv./anenv / bin /activate # venvdotapp helps the python be a mac 'app'. So the pygame window can get focus. Python -m pip install venvdotapp venvdotapp python -m pip install pygame # See if pygame works with the oo module, and the aliens example. Python -m pygame.examples.aliens That's just needed on mac if you use virtualenv, not if you install it with -user, or if you use -m venv. Anaconda Mac Use pythonw instead of python (note the w on the end).
If it doesn't work for you, please see the instructions. Unix Binary Packages Many Linux and BSD distributions have their own packages of Pygame. These may have an older version of Pygame than the wheels, but have been carefully tested with other packages in that distribution.