我正在使用 Windows 10 并正在处理一个聊天机器人项目并使用与 python 集成的 aiml 我收到了这个错误
import aiml
File"C:\Python34\lib\site-packages\aiml\__init__.py", line 4, in <module>
from Kernel import Kernel
ImportError: No module named 'Kernel'
在这里运行集成代码时
import aiml
# Create the kernel and learn AIML files
kernel = aiml.Kernel()
kernel.learn("std-startup.xml")
kernel.respond("load aiml b")
# Press CTRL-C to break this loop while True:
print (kernel.respond(raw_input("Enter your message >> ")))
我的目标目录包含文件__init__.py 这是它的内容
__all__ = []
# The Kernel class is the only class most implementations should need.
from Kernel import Kernel
文件内核也存在..那是什么问题?