当我在anaconda提示符下运行此代码时,它可以正常工作并发送消息,但是在编辑器中,我收到错误消息“ ModuleNotFoundError:没有名为'twilio.rest'的模块;'twilio'不是软件包”
from twilio.rest import Client
account_sid = "ACXXXXXXX"
auth_token = "XXXXXXXX"
client = Client(account_sid, auth_token)
message = client.messages.create(to="+916573864710",
from_="+1469347379",body="hey code run without any errors!")
print(message.sid)