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

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.
主站蜘蛛池模板: 蒙山县| 黑河市| 洛浦县| 乌什县| 都昌县| 嘉祥县| 乃东县| 伊春市| 南江县| 新泰市| 保山市| 榆社县| 合肥市| 乐陵市| 营山县| 伊宁市| 河曲县| 岚皋县| 锡林郭勒盟| 三原县| 彭水| 凉城县| 宁武县| 横山县| 康马县| 桑日县| 瓮安县| 中宁县| 镇沅| 博客| 大方县| 夏邑县| 叶城县| 德州市| 偏关县| 广元市| 兰考县| 宁安市| 汉寿县| 安泽县| 郯城县|