官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 建昌县| 永丰县| 安塞县| 垫江县| 郓城县| 衡山县| 浦江县| 永德县| 锦屏县| 容城县| 龙陵县| 柘荣县| 梅州市| 根河市| 和林格尔县| 亚东县| 秦皇岛市| 堆龙德庆县| 宜昌市| 通化市| 镇原县| 桂林市| 鲁山县| 黔西县| 桓台县| 广水市| 泗阳县| 达尔| 潮安县| 曲靖市| 湖北省| 白水县| 霍邱县| 汤阴县| 沛县| 中方县| 五河县| 海林市| 永新县| 平武县| 康平县|