- Machine Learning with scikit:learn Quick Start Guide
- Kevin Jolly
- 138字
- 2021-06-24 18:15:53
The Anaconda method
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
When upgrading or uninstalling scikit-learn that has been installed with Anaconda, avoid using the pip method at all costs as doing so is most likely going to fail upgrading or removing all the required files. Stick with either the pip method or the Anaconda method in order to maintain consistency.