Chatterbot from chatterbot import Chatbot Modulenotfounderror: No module named 'chatterbot'

Asked

Viewed 238 times

0

from chatterbot import ChatBot
ModuleNotFoundError: No module named 'chatterbot'

I’ve updated the library chatterbot and the pip, I’ve also changed the address of path for C:\Users\Vinic\AppData\Local\Programs\Python\Python37-32\Scripts and C:\Users\Vinic\AppData\Local\Programs\Python\Python37 which is a newer version of Python 3.7.3 and the code for chatterbot It’s pretty basic because I can’t move forward from that

from chatterbot import ChatBot

bot = ChatBot(
    'Terminal',
    storage_adapter='chatterbot.storage.MongoDatabaseAdapter',
    logic_adapters=[
        'chatterbot.logic.BestMatch'
    ],
    database_uri='mongodb://localhost:27017/chatterbot-database'
)

print('Type something to begin...')

while True:
    try:
        user_input = input()

        bot_response = bot.get_response(user_input)

        print(bot_response)

    # Press ctrl-c or ctrl-d on the keyboard to exit
    except (KeyboardInterrupt, EOFError, SystemExit):
        break
  • 1

    How did you install? What is the result of pip show chatterbot?

  • Of a read on requirements.txt of chatterbot and make sure your system has all dependencies installed.

  • 1

    Anderson Carlos Woss and Augusto Vasques managed to solve the problem, had not updated Pip nor chatterbot, was trying to update the chatterbot first before Pip.....

  • Only now I have the following problem 'database_url='C: Users Vinic Onedrive Desktop python db.sqlite3' is giving error (Unicode error) in this character =

  • I’m using IDLE 3.7.3

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.