Answer the question
In order to leave comments, you need to log in
What to do about this error when running telegram bot in PyCharm?
Here is the error:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "D:\www\Мои (все файлы)\PyCharm 2020.3.4\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "D:\www\Мои (все файлы)\PyCharm 2020.3.4\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/Admin/Desktop/bot/banker.py", line 1, in <module>
import telebot;
File "D:\www\Мои (все файлы)\PyCharm 2020.3.4\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'telebot'
Answer the question
In order to leave comments, you need to log in
pip install pytelegrambotapi
PyCharm has nothing to do with the question.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question