i was running a the basic example code from \examples:
`
**_from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
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."
])
response = chatbot.get_response('I would like to book a flight.')
print(response)
`_**
Your work is great so pls respond fastly! Thanks!
@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
I fixed it myself. pip install chatterbot-coprus worked for me
Hello @PrinceChukz,
@SperCoder is correct.
The corpus itself is a separate package, thus have to be installed separately.
pip install chatterbot-corpus worked but it uninstalls the version of the pyYAML file needed as a requirement for the chatterbot to work properly and installs an older version. Which is not good for the training

@gunthercox @Orfeous Getting that error when i try installing from git as stated in chatterbot requirements.txt
Hello @PrinceChukz,
This looks strange.
Just to close out common cases:
Not able to install chatterbot-corpus library using pip command.


Hi,
I having the same issue.
any suggestion
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.
I fixed it myself. pip install chatterbot-coprus worked for me
This one also worked for me. Thank you
Not able to install chatterbot-corpus library using pip command.
@shamsher786 You have written wrong command i.e corpus not coprus
correct command
pip install chatterbot-corpus
unable to install chatterbot-corpus
tried
pip install chatterbot-corpus
conda install -c anaconda pyyaml
nothing worked
How about
pip3 install chatterbot-corpus
? :)
Hey @SperCoder, I'm glad you were able to resolve your issue. I'm going to close this ticket off.
Most helpful comment
I fixed it myself. pip install chatterbot-coprus worked for me