I am using Twilio to do SMS/Text messaging from Python. There are 2 ways to install the package, either use easy_install or pip. Make sure you are using Python 2.7. Here is how I installed the package on Mac
- Macintosh will already have Python added in their system PATH.
- The only step you need to take is to load up the
Terminal
application and type ineasy_install twilio
. - If you want to install Twilio with
pip
, you may need to first installpip
on your system because newer Mac may not come withpip
installed.- To do that you should first install
pip
witheasy_install pip
- You can then use pip to install Twilio with
pip install twilio
- To do that you should first install
To check whether Twilio was properly installed, enter the python
command to enter the Python interpreter in the Terminal
application and type in these two commands:
import twilio
print(twilio.__version__)
It should print the version like 4.5.0