In the event that you have installed Python using the Anaconda distribution, you can install scikit-learn by using the following code in the Anaconda prompt:
The first step is to install the dependencies:
conda install NumPy
conda install SciPy
Next, we can install scikit-learn by using the following code:
conda install scikit-learn
Additionally, if you already have scikit-learn installed with the Anaconda distribution, you can upgrade it to the latest version by using the following code in the Anaconda prompt:
conda update scikit-learn