python安装sklearn模块


可直接用这行命令!:

pip install -U scikit-learn

其他命令:

(1)更新pip

python -m pip install --upgrade pip

(2)安装 scipy

在网址http://www.lfd.uci.edu/~gohlke/pythonlibs/ 中找到你需要的版本scipy

例如windows 64 位 Python2.7 对应下载:scipy-0.18.0-cp27-cp27m-win_amd64.whl

cd 下载scipy 目录下,安装

pip install scipy-0.18.0-cp27-cp27m-win_amd64.whl

(3)安装 matplotlib

pip install matplotlib

(4)安装numpy+mkl

在网址http://www.lfd.uci.edu/~gohlke/pythonlibs/ 找到你需要的numpy+mkl版本

然后 cd 到numpy+mkl所在的目录下,安装

pip install  numpy-1.11.1+mkl-cp27-cp27m-win_amd64.whl



 pip install -U scikit-learn

python安装sklearn模块介绍到这里,更多python学习请参考编程字典python教程和问答部分,谢谢大家对编程字典的支持。


原文链接:https://blog.csdn.net/dlh_sycamore/article/details/79584039?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163149903916780366549356%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fnavwordall.%2522%257D&request_id=163149903916780366549356&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~navwordall~first_rank_ecpm_v1~rank_v29_ecpm-18-79584039.pc_search_insert_download&utm_term=python&spm=1018.2226.3001.4187