Book Image

Python Game Programming By Example

Book Image

Python Game Programming By Example

Overview of this book

Table of Contents (14 chapters)
Python Game Programming By Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

NumPy installation


To use the particle system support of cocos2d, it is necessary to install NumPy, a Python package used to operate with large arrays and matrices in an efficient way. Since it contains several C modules, it might be difficult to install it on Windows systems because you might not have the appropriate compiler.

You can download the official binaries for Windows and Mac OS X from the NumPy site at http://sourceforge.net/projects/numpy/files/NumPy/1.9.2/.

Another option is to download the unofficial compiled binaries from Christoph Gohlke's website at http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy. Here, the packages are uploaded as .whl files. This is the extension of the wheel format and can be installed with pip:

$ pip install numpy‑1.9.2+mkl‑cp34‑none‑win32.whl

In both cases, remember to install the binaries for Python 3.4, since the versions for Python 2.7 and 3.3 are available for download as well.

You can check whether the installation was successful by running this...