我正在尝试在python中为我的rasppi编写一个小的twitterbot。我更新了我的请求,更新了python,删除并重新安装了现有的oauth包,但仍然出现以下错误:
ImportError: No module named requests_oauthlib
有人可以帮忙吗?我的.py代码
#!/usr/bin/env python
import sys
import os
import random
from twython import Twython
CONSUMER_KEY = 'Your-Consumer-Key'
CONSUMER_SECRET = 'Your-Secret-Key'
ACCESS_KEY = 'Your-Access-Key'
ACCESS_SECRET = 'Your-Access-Secret'
api = Twython(CONSUMER_KEY,CONSUMER_SECRET,ACCESS_KEY,ACCESS_SECRET)
api.update_status(status=sys.argv[1])