As was mentioned in Chapter 2, Installation of Python and pandas from Third-Party Vendors, the easiest way to install pandas and its accompanying libraries is to use a third-party distribution such as Anaconda and be done with it. Installing scikit-learn should be no different. I will briefly highlight the steps for installation on various platforms and third-party distributions, starting with Anaconda. The scikit-learn library requires the following libraries:
- Python 2.6.x or higher
- NumPy 1.6.1 or higher
- SciPy 0.9 or higher
Assuming that you have already installed pandas as described in Chapter 2, Installation of pandas and Supporting Software, these dependencies should already be in place. The various options to install scikit-learn on different platforms are discussed in the following sections.