简体   繁体   English

使用 python -m chatterbot --version 检查 chatter 的版本。这是错误

[英]checking the version of chatter using python -m chatterbot --version.This is the error

python -m chatterbot --version Traceback(最近一次调用):文件“/opt/anaconda3/lib/python3.7/runpy.py”,第193行,在_run_module_as_main“ main ”,mod_spec)文件“/opt/anaconda3 /lib/python3.7/runpy.py”,线85,在_run_code EXEC(代码,run_globals)文件“/opt/anaconda3/lib/python3.7/site-packages/chatterbot/py”为,第20行,在 print(get_chatterbot_version()) 文件“/opt/anaconda3/lib/python3.7/site-packages/chatterbot/ main .py”中,第 15 行,在 get_chatterbot_version 中返回 config['chatterbot']['version'] 文件“ /opt/anaconda3/lib/python3.7/configparser.py", line 958, in getitem raise KeyError (key) KeyError : 'chatterbot'

probably this will work for you:可能这对你有用:

git clone https://github.com/gunthercox/ChatterBot.git 
python3 setup.py install

Sources:资料来源:

https://github.com/gunthercox/ChatterBot/issues/1940 https://github.com/gunthercox/ChatterBot/issues/1940

Hope it help, have a nice day,希望能帮到你,祝你有美好的一天

David.大卫。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM