英文:
I am not able to resolve the error :help me to solve the error Import "telegram.ext" could not be resolved
问题
我正在为Telegram编写一个机器人,但出现了这个错误,我无法解决它:“无法解析导入“telegram.ext””
我尝试了多次重新安装pip,但仍然不起作用!
我尝试了多种方法,但无法解决这个错误,我已经检查了一切,错误仍然存在。
英文:
I'm programming a bot for telegram and it's giving this error and I can't resolve it: "Import "telegram.ext" could not be resolved"
I tried several times to reinstall pip from telegram and it's not working!
I've tried several ways and I'm not able to resolve the error, I've checked everything and still the error persists
答案1
得分: 1
尝试:
pip uninstall telegram -y
pip uninstall python-telegram-bot -y
pip install -U python-telegram-bot
然后,
import telegram.ext
这应该解决问题。
英文:
Try:
pip uninstall telegram -y
pip uninstall python-telegram-bot -y
pip install -U python-telegram-bot
Then,
import telegram.ext
It should fix the problem
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论