Python2.7中安装sklearn

两种方式安装sklearn机器学习的库:

一:手动安装sklearn库:

       1:首先你要确保你的Python2.7版本正确安装,有pip和easy_install命令可以使用。

       2:安装numpy包。dos下的命令:

[python]  view plain  copy
  1. python2 -m pip install numpy;  

       3:安装scipy包。dos下的命令:

[python]  view plain  copy
  1. python2 -m pip install scipy;  

       4:安装matplotlib包。dos下的命令:

[python]  view plain  copy
  1. python2 -m pip install matplotlib;(ps注:可安装可不安装)  

     5:安装sklearn包。dos下的命令:

[python]  view plain  copy
  1. python2 -m pip install sklearn。  

二:利用集合好的安装包进行安装:

直接安装anaconda就可以了:清华大学镜像地址;       anaconda官方镜像地址;

你可能感兴趣的:(windows中软件安装及设置)