zoukankan      html  css  js  c++  java
  • 安装scikit-learn

    首先到官网下载安装 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:Python34Scripts>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.1
    Downloading https://pypi.python.org/packages/3.4/s/scikit-learn/scikit-learn-0.1
    6.1.win32-py3.4.exe#md5=28dc57e538e074748832d18fb8a93e88
    Processing scikit-learn-0.16.1.win32-py3.4.exe
    creating 'C:UsersADMINI~1AppDataLocalTempeasy_install-qg8zl565scikit_lear
    n-0.16.1-py3.4-win32.egg' and adding 'C:UsersADMINI~1AppDataLocalTempeasy_
    install-qg8zl565scikit_learn-0.16.1-py3.4-win32.egg.tmp' to it
    creating c:python34libsite-packagesscikit_learn-0.16.1-py3.4-win32.egg
    Extracting scikit_learn-0.16.1-py3.4-win32.egg to c:python34libsite-packages
    Adding scikit-learn 0.16.1 to easy-install.pth file
    
    Installed c:python34libsite-packagesscikit_learn-0.16.1-py3.4-win32.egg
    Processing dependencies for scikit-learn
    Finished processing dependencies for scikit-learn

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

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

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

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

  • 相关阅读:
    读书笔记 ASP.NET 2.0编程珠玑
    为什么公司招聘一个好员工很难,程序员找份好工作也不容易
    读书笔记 ASP.NET 2.0高级编程 第31章 配置
    Win7 x64 旗舰版下重新注册IIS7.5
    T_SQL 开发的13个Tips
    报表服务扩展:基于WCF技术的报表服务扩展
    实现多国语言的Reporting Services项目
    技术人生:如何成为一位优秀的程序员
    幸福框架:待实现的基础应用列表
    技术人生:做人十心机
  • 原文地址:https://www.cnblogs.com/CoreXin/p/4818368.html
Copyright © 2011-2022 走看看