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

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.
主站蜘蛛池模板: 杭锦旗| 石家庄市| 通州市| 岢岚县| 绥德县| 西丰县| 土默特右旗| 张家口市| 大新县| 建宁县| 邢台县| 安泽县| 巴彦淖尔市| 台南市| 长丰县| 竹溪县| 香格里拉县| 滕州市| 吉林市| 桦南县| 自治县| 边坝县| 杂多县| 原平市| 额尔古纳市| 曲阳县| 内江市| 交城县| 辽阳市| 连南| 若羌县| 集安市| 玛纳斯县| 灵武市| 昭平县| 林口县| 舒兰市| 邻水| 浮梁县| 温泉县| 泸溪县|