安装crab

1. crab 介绍: Recommender systems in Python

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

 

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

 

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()

显示:

说明终于成功了!!

 

posted @ 2016-11-14 11:02  lesleysbw  阅读(602)  评论(0编辑  收藏  举报