[英]"No module named" error after installing the module
I've installed the pyTelegramBotAPI using pip install pyTelegramBotAPI
.我已经安装了pyTelegramBotAPI使用pip install pyTelegramBotAPI
。 I've imported the telebot package to use the API.我已经导入了Telebot包来使用 API。
But when I want to run my program, it says: No module named 'telebot'.但是当我想运行我的程序时,它说:没有名为“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.我正在使用 Windows 10。
尝试python3 -m pip install pyTelegramBotAPI
可能 pip 将模块安装到不同的 python 版本。
Try this code:试试这个代码:
pip3 uninstall telebot
pip3 uninstall PyTelegramBotAPI
pip3 install pyTelegramBotAPI
pip3 install --upgrade pyTelegramBotAPI
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.