pip install --user --upgrade twilio on windows (or use pip on macos and linuxappendix has more details about installing third-party modules note this section is specific to the united states twilio does offer sms texting services for countries other than the united statessee the twilio module and its functions will work the same outside the united states signing up for twilio account go to up for new accountyou'll need to verify mobile phone number that you want to send texts to go to the verified caller ids page and add phone number you have access to twilio will text code to this number that you must enter to verify the number (this verification is necessary to prevent people from using the service to spam random phone numbers with text messages you will now be able to send texts to this phone number using the twilio module twilio provides your trial account with phone number to use as the sender of text messages you will need two more pieces of informationyour account sid and the auth (authenticationtoken you can find this information on the dashboard page when you are logged in to your twilio account these values act as your twilio username and password when logging in from python program sending text messages once you've installed the twilio modulesigned up for twilio accountverified your phone numberregistered twilio phone numberand obtained your account sid and auth tokenyou will finally be ready to send yourself text messages from your python scripts compared to all the registration stepsthe actual python code is fairly simple with your computer connected to the internetenter the following into the interactive shellreplacing the accountsidauthtokenmytwilionumberand mycellphone variable values with your real informationu from twilio rest import client accountsid 'acxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxauthtoken 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxv twiliocli client(accountsidauthtokenmytwilionumber '+ mycellphone '+ message twiliocli messages create(body='mr watson come here want to see you 'from_=mytwilionumberto=mycellphonea few moments after typing the last lineyou should receive text message that readssent from your twilio trial account mr watson come here want to see you sending email and text messages