0

大家好,我正在尝试在 python 中运行关于 Telepot 的最简单的教程代码,但我不断收到此消息 ModuleNotFoundError: No module named 'telepot'

我的代码非常基本

import telepot

bot = telepot.Bot('1446317719:AAGZy_WVMMv8NG6g_E_fQCyx9ItdIprk7oA')

bot.getMe()

我的 python 版本是 Python 2.7.16

我的 python3 版本是 Python 3.9.0

我的操作系统是 Catalina 10.15.7

我已经用 pip install telepot 反复安装了 telepot 并再次卸载并安装。它始终没有错误地完成,所以我不明白出了什么问题

4

1 回答 1

0

我解决了。我使用 pip3 install telepot 安装了它,现在它可以工作了

于 2020-11-12T21:32:59.187 回答