安装crab

时间:2023-03-10 01:43:40
安装crab

1. crab 介绍: Recommender systems in Python

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

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

2. 安装scikit-learn

安装crab

3.安装crab

发现直接用

easy_install -U crab

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

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

  安装crab

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

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

gcc -v

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

python setup.py build –compiler=mingw32

  这个时候 就安装完成了

4. 测试Crab

import scikits.crab as scc
scc.test()

显示:

安装crab

说明终于成功了!!