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

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.
主站蜘蛛池模板: 庆元县| 云浮市| 周口市| 舒兰市| 福清市| 兰坪| 玛纳斯县| 尼玛县| 久治县| 顺义区| 仪征市| 宁国市| 西丰县| 将乐县| 邢台县| 县级市| 乐安县| 赤水市| 托克托县| 六枝特区| 平山县| 镇坪县| 宝坻区| 宁远县| 赤峰市| 榆中县| 太康县| 镇远县| 塘沽区| 乌拉特中旗| 米泉市| 阳泉市| 泰兴市| 常宁市| 扎囊县| 加查县| 二连浩特市| 民和| 凭祥市| 高平市| 措勤县|