Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python Game Programming By Example

You're reading from   Python Game Programming By Example A pragmatic guide for developing your own games with Python

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785281532
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime