• 安装crab


    1. crab 介绍: Recommender systems in Python

    官网介绍:http://muricoca.github.io/crab/

    在安装过程中,发现一个问题,我已经安装了Anconda,像numpy、scikits_learn都已经安装好了,但是在cmd shell中一直显示没有安装。这是因为,在shell中无法使用conda管理包,最后解决方法是:地址切换到Anconadascripts下面

    2. 安装scikit-learn

    3.安装crab

    发现直接用

    easy_install -U crab

    安装后,死也import 不了scikits.crab,于是还是手动安装

    • 下载地址:https://github.com/muricoca/crab
    • 下载以后,安装:

      

      发现报错:No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutiles

      找了半天以后,发现好像是MinGW编译的问题,我看网上都说要配置环境变量,但是我在shell中输入:

    gcc -v

      又显示正确,后面终于找到一个:http://blog.csdn.net/ren911/article/details/6448696

    python setup.py build –compiler=mingw32

      这个时候 就安装完成了

    4. 测试Crab

    import scikits.crab as scc
    scc.test()

    显示:

    说明终于成功了!!

  • 相关阅读:
    noip2008提高组题解
    noip2007提高组题解
    noip2006提高组题解
    一些题目(3)
    一些题目(2)
    洗牌问题
    一些题目
    同余模算术中的乘法逆元
    省常中模拟 Test2 Day2
    用矩阵乘法优化递推
  • 原文地址:https://www.cnblogs.com/lesleysbw/p/6061077.html
Copyright © 2020-2023  润新知