Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Cyber Security
  3. Question
Cyber Security

How to fix the issue of “ImportError: No module named twilio.rest”?

Asked by Jordan Parker May 25, 2021 2.5K views 1 answer
Share

About this question

When I run the code, it displays the error

"No module named twilio.rest.

I  tried to uninstall and install a few times with pip.

from twilio.rest import Client
client = Client(account_sid, auth_token)
message = client.messages.create(
                       to="",
                       from_="",
                       body="" )
print(message.sid)
ImportError: No module named twilio.rest

Your answer

1 Answer

More Cyber Security discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.