Appendix A. Getting started with Python

In this appendix we’ll go through instructions for installing Python on the three most popular operating systems. In addition, there’s a short introduction to Python and instructions for installing the Python modules used in this book. A discussion on NumPy is saved for appendix B, where it more appropriately fits in with a discussion on linear algebra.

A.1. Installing Python

To follow all of the examples in this book, you’re going to need Python 2.7, NumPy, and Matplotlib. The examples aren’t guaranteed to work with Python 3.X, because Python doesn’t provide backward compatibility. The easiest way to get these modules is through package installers. These are available on Mac OS and Linux.

A.1.1. Windows ...

Get Machine Learning in Action now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.