jh0ker / mau_mau_bot

Telegram Bot that allows you to play Mau Mau (UNO) via inline queries
GNU Affero General Public License v3.0
312 stars 231 forks source link

how can i fix this error #45

Closed EdisonJwa closed 6 years ago

EdisonJwa commented 7 years ago

How can I fix this error when I want to run the code python3 bot.py Traceback (most recent call last): File "bot.py", line 24, in <module> from telegram import ParseMode, Message, Chat, InlineKeyboardMarkup, \ ImportError: No module named 'telegram'

imlonghao commented 7 years ago

# sudo pip install python-telegram-bot

EdisonJwa commented 7 years ago

I did that

Requirement already satisfied: python-telegram-bot in /usr/lib/python2.7/site-packages Requirement already satisfied: future>=0.16.0 in /usr/lib/python2.7/site-packages (from python-telegram-bot) Requirement already satisfied: certifi in /usr/lib/python2.7/site-packages (from python-telegram-bot)

lukasschlueter commented 7 years ago

Seems like you have both Python2 and Python3 installed. Explicitly installing it for Python3 should work: # sudo pip3 install python-telegram-bot