Replies: 1 comment 2 replies
-
Hey there. You need to install |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am encountering an error when trying to use the telegram bot with Python. Specifically, when importing the necessary modules with the following code:
import logging from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
I consistently receive the following error message:
ModuleNotFoundError: No module named 'telegram'
I have tried several solutions including:
Running the commands
pip install python-telegram-bot
,pip3 install python-telegram-bot
,pip install telegram
, andpip3 install telegram
Uninstalling and reinstalling the modules separately
Renaming the file to avoid any module import conflicts
Running the commands locally on the virtual environment as well as from the cmd terminal
Despite all these efforts, I have not been able to resolve the issue.If anyone could provide assistance or guidance, I would greatly appreciate it
Beta Was this translation helpful? Give feedback.
All reactions