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 即可。

  • 相关阅读:
    主流液晶显示器尺寸参数
    不能访问网络位置的解决方法(转)
    打开Word提示你正试图运行的函数包含有宏或需要宏语言支持的内容
    教你如何防“蹭网”
    ASA数据库瘦身(原创)
    多种解决:“Word无法启动转换器mswrd632.wpc”方法
    百兆线与千兆线网线制作方法
    linux常用命令
    DefaultIfEmpty
    实现手机发送验证码 进行验证
  • 原文地址:https://www.cnblogs.com/CoreXin/p/4818368.html
Copyright © 2011-2022 走看看