Ubuntu 14.04 LTS:`apt-get install rake` - > “ImportError:没有名为rake的模块”

时间:2016-09-08 05:00:37

标签: python ubuntu 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

为什么会这样?我错过了什么。

2 个答案:

答案 0 :(得分:2)

好的,我得到了回答。

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

答案 1 :(得分:0)

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

使用

安装
pip install python-rake

代码

import RAKE