我正在 python 中运行一个电报机器人,并且在 raspbian ( pi3 ) 上使用 python3.6
以下是我的进口:
from __future__ import (absolute_import, division,
print_function, unicode_literals)
from builtins import (
bytes, dict, int, list, object, range, str,
ascii, chr, hex, input, next, oct, open,
pow, round, super,
filter, map, zip)
from uuid import uuid4
import re
import telegram
from telegram.utils.helpers import escape_markdown
from telegram import InlineQueryResultArticle, ParseMode, \
InputTextMessageContent
from telegram.ext import Updater, InlineQueryHandler, CommandHandler
import logging
import random
import telepot
import unicodedata
import json
import requests
import bs4
from bs4 import BeautifulSoup
当我尝试使用 sudo python3 bot.py 运行我的机器人时,我得到
ImportError: No module named 'future'
我已经搜索并找到了很多答案,但没有一个对我有用,例如pip install future
and pip3 install future
该模块确实显示在我的 python 3.6 库中未来在lib https://i.stack.imgur.com/zvTXE.png
知道为什么它仍然说No module named future
? ?