1
我試圖用這個指南運行聊天機器人例如:http://chatterbot.readthedocs.io/en/stable/tutorial.html蟒蛇 - 導入錯誤:無法導入名稱import_module
所以我得到這個導入錯誤:
➜ examples git:(master) python basic_example.py
Traceback (most recent call last):
File "basic_example.py", line 2, in <module>
from chatterbot import ChatBot
File "/Library/Python/2.7/site-packages/chatterbot/__init__.py", line 4, in <module>
from .chatterbot import ChatBot
File "/Library/Python/2.7/site-packages/chatterbot/chatterbot.py", line 4, in <module>
from .logic import MultiLogicAdapter
File "/Library/Python/2.7/site-packages/chatterbot/logic/__init__.py", line 1, in <module>
from .logic_adapter import LogicAdapter
File "/Library/Python/2.7/site-packages/chatterbot/logic/logic_adapter.py", line 3, in <module>
from chatterbot.utils import import_module
ImportError: cannot import name import_module
任何幫助嗎?
它的工作,非常感謝你! – anderlaini