First, I suggest you to update the image of your board to the 159 version. You can download this version from here
Once with this image in your board, you will need to run configure_edison --setup and set the password, name and wifi network.
Then, run the following commands:
root@edison:~# wget https://bootstrap.pypa.io/get-pip.py root@edison:~# python get-pip.py root@edison:~# pip install twilio