如何安装/使用Python ChatBot?

时间:2019-02-21 01:06:32

标签: python pip

尝试导入“ ChatBot”时出现以下错误:

>>> from chatterbot import ChatBot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/chatterbot/__init__.py", line 4, in <module>
    from .chatterbot import ChatBot
  File "/usr/local/lib/python2.7/dist-packages/chatterbot/chatterbot.py", line 2, in <module>
    from chatterbot.storage import StorageAdapter
ImportError: No module named storage
>>>

文档https://github.com/gunthercox/ChatterBot声明可以简单运行:

pip install chatterbot

我做到了,也尝试了--user。同样的问题。

1 个答案:

答案 0 :(得分:1)

ChatterBot requires Python 3.4+