ModuleNotFoundError: No module named 'ChatterBot'

已回答

I'm getting a ModuleNotFoundError, however there is no red line under the module name when importing and the module shows up in the interpreter.

0
正式评论

Hi,

  1. Move bot.py from venv folder to the project root - ChatBot. venv is your project virtual environment. You should not store your custom files inside.
  2. Correct import is from chatterbot import ChatBot, see the official docs.

Cheers.

请先登录再写评论。