- Machine Learning with scikit:learn Quick Start Guide
- Kevin Jolly
- 105字
- 2021-06-24 18:15:53
The pip method
Scikit-learn requires a few packages to be installed on your device before you can install it. These are as follows:
- NumPy: Version 1.8.2 or greater
- SciPy: Version 0.13.3 or greater
These can be installed using the pip method by using the following commands:
pip3 install NumPy
pip3 install SciPy
Next, we can install scikit-learn using the following code:
pip3 install scikit-learn
Additionally, if you already have scikit-learn installed on your device and you simply want to upgrade it to the latest version, you can use the following code:
pip3 install -U scikit-learn
The version of scikit-learn implemented in the book is 0.19.1.