我正在使用Telebot为Telegram制作python机器人
bot = telebot.TeleBot('TokenHere')
apihelper.proxy = {'https': 'socks5://user:password@127.0.0.1:1080'}
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Hello?")
我安装了最新版本:gunicorn,PySocks,pyTelegramBotAPI,请求和urllib3
仍然收到错误:
AssertionError: Not supported proxy scheme socks5
代理工作正常,我与另一个漫游器进行了检查。
答案 0 :(得分:0)
只需通过yum删除python请求,然后通过pip安装