O'Reilly logo

Computer Vision with Python 3 by Saurabh Kapur

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

Scikit-learn  (sklearn)

Like scikit-image, scikit-learn is another open source library that provides easy-to-use APIs for most of the machine learning algorithms that we are going to use in this chapter. 

Installing sklearn is fairly simple. The following steps show how to install it on various platforms:

  • Windows: Since you have pip installed already (hopefully you installed scikit-image during the first chapter), run the following command in your terminal.
        pip3 install sklearn

To verify you have successfully installed sklearn, run the following command in your terminal:

        python3 -c "import sklearn"

If you see no errors, you are good to go.

  • Linux/macOS: Both Linux and macOS have the same steps to install sklearn. Assuming you have pip ...

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