Ubuntu 14.04 LTS: `apt-get install rake` -> “ImportError: No module named rake”

Ubuntu 14.04 LTS: `apt-get install rake` -> “ImportError: No module named rake”

I used 'sudo apt-get install rake'.
>>> import rake
but Fails with error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named rake

为什么会这样?我漏掉了什么。

好的,我得到答案了。

$ git clone https://github.com/zelandiya/RAKE-tutorial
$ cd RAKE-tutorial/
:~/RAKE-tutorial$ python
>>> import rake

我猜你想用这个 https://github.com/aneesha/RAKE .

使用

安装
pip install python-rake

在代码中

import RAKE