vérification de la version de chatter à l'aide de python -m chatterbot --version.C'est l'erreur

Sep 08 2020

python -m chatterbot --version Traceback (dernier appel en dernier): Fichier "/opt/anaconda3/lib/python3.7/runpy.py", ligne 193, dans _run_module_as_main " main ", mod_spec) Fichier "/ opt / anaconda3 /lib/python3.7/runpy.py ", ligne 85, dans le fichier _run_code exec (code, run_globals)" /opt/anaconda3/lib/python3.7/site-packages/chatterbot/ main .py ", ligne 20, in print (get_chatterbot_version ()) File "/opt/anaconda3/lib/python3.7/site-packages/chatterbot/ main .py", ligne 15, dans get_chatterbot_version return config ['chatterbot'] ['version'] File » /opt/anaconda3/lib/python3.7/configparser.py ", ligne 958, dans getitem lever KeyError (key) KeyError: 'chatterbot'

Réponses

DavidGarciaRicou Sep 08 2020 at 21:38

cela fonctionnera probablement pour vous:

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

Sources:

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

J'espère que cela vous aidera, passez une bonne journée,

David.