ChatterBot: ModuleNotFoundError: No module named 'chatterbot_corpus' error
i was running a the basic example code from \examples:
`
**_from chatterbot import ChatBot from chatterbot.trainers import ListTrainer
Create a new chat bot named Charlie
chatbot = ChatBot(‘Charlie’)
trainer = ListTrainer(chatbot)
trainer.train([ “Hi, can I help you?”, “Sure, I’d like to book a flight to Iceland.”, “Your flight has been booked.” ])
Get a response to the input text ‘I would like to book a flight.’
response = chatbot.get_response(‘I would like to book a flight.’)
print(response)
`_**
Your work is great so pls respond fastly! Thanks!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (1 by maintainers)
I fixed it myself. pip install chatterbot-coprus worked for me
@gunthercox @orfeous I am having the same issue of #no module named chatterbot corpus, must i pip install chatterbot-corpus to be able to train the chatterbot? Or will pip install chatterbot alone do everything
How about
pip3 install chatterbot-corpus
? 😃
I struggle a lot i tried with python 3.7 and 3.6 , I was facing the same issue. finally i manually download and pasted in the C:\Python\python36\Lib\site-packages and it worked . make sure you put your python path correctly.