Python3错误:没有模块在pip安装i后命名为telebot

2024-09-25 16:23:58 发布

您现在位置:Python中文网/ 问答频道 /正文

python 3.5.2//Ubuntu 16.04 LTS

我已经安装了PyTelegrameBotAPI,使用以下命令为telegram编写机器人程序:

pip instal pyTelegramBotAPI

结果:

^{pr2}$

然后,我将其导入源代码:

import telebot

但是,当我运行代码时,我得到了以下错误:

    Traceback (most recent call last):
      File "firstBot.py", line 1, in <module>
        import telebot
    ImportError: No module named 'telebot'

Tags: pipimport命令程序源代码ubuntu机器人telegram