P
P
Partsy2022-04-10 09:05:50
Python
Partsy, 2022-04-10 09:05:50

There is a python code. How to fix?

import telebot

bot = telebot.TeleBot('bot token')


Error:
Line 1, in
ModulNotFoundError: No modul named 'telebot'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AVKor, 2022-04-10
@Partsy

pip install telebot

A
Alexander Nesterov, 2022-04-10
@AlexNest

For starters, put aside bot writing and learn python.
For example, according to the book Mark Lutz - Learning python. 5th edition .
Without knowing the basics, every time an error pops up, you will run to Google / here / on stackowerflow with similar questions.
Specifically on your question - in the specified book the fifth section of the first volume is completely devoted to modules, the absence of which the interpreter swears.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question