Windows 10 を使用していて、チャットボット プロジェクトに取り組んでおり、Python と統合された aml を使用しています。このエラーが発生しました
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 >> ")))
私のaimlディレクトリにはファイル__init__.pyが含まれています。これがコンテンツです
__all__ = []
# The Kernel class is the only class most implementations should need.
from Kernel import Kernel
また、ファイルカーネルが存在します..では、何が問題なのですか?