Chatterbot: ModuleNotFoundError: No module named 'chatterbot_corpus' error

Created on 22 Apr 2019  路  15Comments  路  Source: gunthercox/ChatterBot

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!

Most helpful comment

I fixed it myself. pip install chatterbot-coprus worked for me

All 15 comments

@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

image

@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:

  • Do you have enough free disk space?
  • What version of windows 10 ou running? The path may be longer that 260 characters. Read more here
  • when you browse into that directory can you write and/or modify files there?

Not able to install chatterbot-corpus library using pip command.

Screenshot_71

Screenshot_72

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.

Screenshot_71

Screenshot_72

@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
error

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gunthercox picture gunthercox  路  3Comments

hochochoc picture hochochoc  路  3Comments

juanpialbano picture juanpialbano  路  4Comments

ArunSingh1 picture ArunSingh1  路  3Comments

cesarandreslopez picture cesarandreslopez  路  4Comments