首先到官网下载安装 python ,之后下载setuptools 进行安装。

'python' 不是内部或外部命令 

可运行 set PATH=%PATH%;C:\Python34

安装完成之后,运行easy_install virtualenv

之后根据

Scikit-learn requires:

  • Python (>= 2.6 or >= 3.3),
  • NumPy (>= 1.6.1),
  • SciPy (>= 0.9).

安装 easy_install numpy

安装 easy_install SciPy 

完成之后即可运行 easy_install scikit-learn 

C:\Python34\Scripts>easy_install scikit-learn
Searching for scikit-learn
Reading https://pypi.python.org/simple/scikit-learn/
Reading http://scikit-learn.org
Reading http://scikit-learn.sourceforge.net
Download error on http://scikit-learn.sourceforge.net: timed out -- Some package
s may not be found!
Reading http://sourceforge.net/projects/scikit-learn/files/
Best match: scikit-learn 0.16.
Downloading https://pypi.python.org/packages/3.4/s/scikit-learn/scikit-learn-0.1
6.1.win32-py3..exe#md5=28dc57e538e074748832d18fb8a93e88
Processing scikit-learn-0.16..win32-py3..exe
creating 'C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-qg8zl565\scikit_lear
n-0.16.-py3.-win32.egg' and adding 'C:\Users\ADMINI~\AppData\Local\Temp\easy_
install-qg8zl565\scikit_learn-0.16.-py3.-win32.egg.tmp' to it
creating c:\python34\lib\site-packages\scikit_learn-0.16.-py3.-win32.egg
Extracting scikit_learn-0.16.-py3.-win32.egg to c:\python34\lib\site-packages
Adding scikit-learn 0.16. to easy-install.pth file Installed c:\python34\lib\site-packages\scikit_learn-0.16.-py3.-win32.egg
Processing dependencies for scikit-learn
Finished processing dependencies for scikit-learn

如按照此方式操作依然不行

>>> import sklearn
Traceback (most recent call last):
File "<pyshell#15>", line , in <module>
import sklearn
ImportError: No module named 'sklearn'

可在 https://github.com/scikit-learn/scikit-learn 下载

解压到 C盘目录下 运行 python setup.py install 即可。

安装scikit-learn的更多相关文章

  1. scikit learn 模块 调参 pipeline+girdsearch 数据举例:文档分类 (python代码)

    scikit learn 模块 调参 pipeline+girdsearch 数据举例:文档分类数据集 fetch_20newsgroups #-*- coding: UTF-8 -*- import ...

  2. (原创)(三)机器学习笔记之Scikit Learn的线性回归模型初探

    一.Scikit Learn中使用estimator三部曲 1. 构造estimator 2. 训练模型:fit 3. 利用模型进行预测:predict 二.模型评价 模型训练好后,度量模型拟合效果的 ...

  3. (原创)(四)机器学习笔记之Scikit Learn的Logistic回归初探

    目录 5.3 使用LogisticRegressionCV进行正则化的 Logistic Regression 参数调优 一.Scikit Learn中有关logistics回归函数的介绍 1. 交叉 ...

  4. Scikit Learn: 在python中机器学习

    转自:http://my.oschina.net/u/175377/blog/84420#OSC_h2_23 Scikit Learn: 在python中机器学习 Warning 警告:有些没能理解的 ...

  5. Scikit Learn

    Scikit Learn Scikit-Learn简称sklearn,基于 Python 语言的,简单高效的数据挖掘和数据分析工具,建立在 NumPy,SciPy 和 matplotlib 上.

  6. Python第三方库(模块)"scikit learn"以及其他库的安装

    scikit-learn是一个用于机器学习的 Python 模块. 其主页:http://scikit-learn.org/stable/. GitHub地址: https://github.com/ ...

  7. Scikit Learn安装教程

    Windows下安装scikit-learn 准备工作 Python (>= 2.6 or >= 3.3), Numpy (>= 1.6.1) Scipy (>= 0.9), ...

  8. 机器学习框架Scikit Learn的学习

    一   安装 安装pip 代码如下:# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=83 ...

  9. Linear Regression with Scikit Learn

    Before you read  This is a demo or practice about how to use Simple-Linear-Regression in scikit-lear ...

  10. python 安装scikit!!!

    首先,吐槽一下,真的是折腾好几天,一会更新这个,一会更新那个,总是各种奇葩问题诸如此类: cannot import check-build pip有新版本,需要更新(黄字) 其中scipy出错最多, ...

随机推荐

  1. IntelliJ IDEA 2017.3尚硅谷-----主题

    http://www.riaway.com/

  2. GitHub网页版基本操作

    创建存储库 登录GitHub进入主页,点击头像左边的加号,创建存储库 填写存储库名称.描述,根据需求设置其他选项.点击“Create repository”按钮 创建分支 打开之前创建好的存储库,点击 ...

  3. Jmeter学习之-聚合报告详解

    在对接口进行性能测试时,经常用到jmeter的聚合报告来分析数据 首先在待测试的接口或线程组下添加“监听器>聚合报告” 执行请求后,将生成聚合报告,聚合报告包括以下结果参数(中文版+英文版) A ...

  4. eclipse提示错误:save could not be completed

    原博客地址:https://blog.csdn.net/alane1986/article/details/6514000 2010年12月06日 19:20:00 alane1986 阅读数:150 ...

  5. CSS学习(5)更多的选择器

    1.通配符选择器 * 表示选中所有元素 *{color:red;} 2.属性选择器  根据属性名和属性值选中元素 https://developer.mozilla.org/zh-CN/docs/We ...

  6. C语言如何判断单个数字是否溢出:

    如何判断一个输入或者输出转化的单个数字是否溢出: if( num>0x7fffffff || num<(signed int)0x80000000) 注意: int类型的最大正数:0x7f ...

  7. 关于excuteQuery与execute()

    excuteQuery是查询语句,如果是更新或者插入或报错,换成execute()就好了

  8. 红帽RHCE培训-课程1笔记内容

    ssh -X root@s0 1.环境变量 env 系统变量名都为大写; 引用变量名对应的值时使用$引导: SHELL下,修改变量临时生效. # PS1=' # ' # echo $PS1 永久生效放 ...

  9. Apache的虚拟主机功能(基于IP地址、基于虚拟主机、基于端口)

    1. 安装Apache服务程序(系统用户,1-199之间) 第一步:在虚拟机软件里选中光盘镜像: 第二步:将光盘设备挂载到/media/cdrom目录 输入:mkdir -p /media/cdrom ...

  10. wordpress 代码获得菜单的方法

    1.第一种,在function.php中添加这个东东,wp_nav_menu()主要是用这个函数 $menu = 'menu'; $nav_menu = wp_get_nav_menu_object( ...