O'Reilly logo

Machine Learning in Action by Peter Harrington

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required