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

Installing cocos2d

In our previous game, we did not use any third-party package since Tkinter was part of the Python standard library. This is not the case with our new game framework, which must be downloaded and installed.

The Python Package Index (also called PyPI) is an official software repository of third-party packages, and thanks to package manager systems, this process becomes very straightforward. The pip is the packaging tool recommendation, and it is already included in the latest Python installations.

You can check whether pip is installed by running pip --version. The output indicates the version of pip and where it is located. This information may vary depending on your Python version and its installation directory:

$ pip --version
pip 6.0.8 from C:\Python34\lib\site-packages (python 3.4)

Since cocos2d is available on the PyPI, you can install it by running the following command:

$ pip install cocos2d

This command downloads and installs not only the cocos2d package but also...

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