SKLearner Home | About | Contact | Examples

Install Scikit-Learn with conda

Conda is a popular open-source package management system and environment management system used in data science and machine learning. It provides a convenient way to install scikit-learn and manage its dependencies.

This example will show how to install scikit-learn using conda on Windows, macOS, and Linux.

To install scikit-learn with conda, run the following command in your terminal or Anaconda Prompt:

conda install -c conda-forge scikit-learn

The -c conda-forge option specifies the conda-forge channel, which provides a more up-to-date version of scikit-learn compared to the default conda channel.

To confirm that scikit-learn was successfully installed, you can import it in a Python script or interactive shell and print out the version number:

import sklearn
print(sklearn.__version__)

Running the example gives an output like:

1.5.0


See Also