Are you having this error when running your Twilio Test Program for Python?

Traceback (most recent call last):
File “sms.py”, line 2, in <module>
from twilio.rest import Client
ImportError: cannot import name Client

Here’s how you resolve the issue.

  1. In your terminal run the following command

pip install –user –upgrade twilio

After that run your program again to try. That should do it.