Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"No module named" error after installing the module

I've installed the pyTelegramBotAPI using pip install pyTelegramBotAPI. I've imported the telebot package to use the API.

But when I want to run my program, it says: No module named 'telebot'. The entire error message is:

(...file path...) Telegram Bot>CertificateBot.py
Traceback (most recent call last):
(...file path...) \CertificateBot.py", line 1, in <module>
import telebot

ModuleNotFoundError: No module named 'telebot'

I'm using Windows 10.

like image 317
Mohammad Shahriari Avatar asked Nov 30 '25 19:11

Mohammad Shahriari


1 Answers

Try python3 -m pip install pyTelegramBotAPI Probably pip installs the module to a different python version.

like image 59
Adam Katav Avatar answered Dec 02 '25 10:12

Adam Katav