当我尝试安装时 RAKE - Rapid Automatic Keywords Extraction我在使用 Python 2.7 的 Windows 8 和 Ubuntu 14.04 上都收到以下错误:
error: Namespace package problem: rake is a namespace package, but its
`__init__.py` does not call declare_namespace()! Please fix it.
(See the setuptools manual under "Namespace Packages" for details.)
我尝试过使用 pip 安装以及使用 python install setup.py 手动安装。
这个错误是什么意思,我该如何解决?
请您参考如下方法:
我在尝试使用 pip install rake 安装 rake 时遇到了上述错误。使用 pip search rake 搜索正确的包名称给出了一个包含 python-rake 的列表。运行行 pip install python-rake 修复了错误/正确安装了 rake。
注意 rake 的导入使用全部大写(即 import RAKE),如 project's repo 中所示.
