1

When I run this code in anaconda prompt it works properly and sends message, but in editor I get error "ModuleNotFoundError: No module named 'twilio.rest'; 'twilio' is not a package"

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)
aara98
  • 101
  • 1
  • 1
  • 2

0 Answers0