小编Mah*_*yar的帖子

虽然我安装了 python-telegram-bot,但没有名为“telegram”的模块的错误

我安装了电报包。但是当我尝试运行简单的示例 echobot.py 时,出现错误:

Traceback (most recent call last):
    File "echobot.py", line 8, in <module>
import telegram ImportError: No module named 'telegram'
Run Code Online (Sandbox Code Playgroud)

谁能帮我?

我使用 git 安装:

$ git clone https://github.com/python-telegram-bot/python-telegram-bot
Run Code Online (Sandbox Code Playgroud)

在这之后:

$ python -i
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import telegram

Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
ImportError: No module named 'telegram'
Run Code Online (Sandbox Code Playgroud)

python git python-2.7 python-telegram-bot telegram-bot

3
推荐指数
1
解决办法
2万
查看次数