squal squal - 3 months ago 12
Python Question

How can i install twilio package via pip?

I have Python 2.7.12 (64 bit) installed on my Windows machine.
When I installed it, I added pip and the python.exe path.
Now when I try to install Twilio with

pip install twilio


I get the error

pip is not recognized as an external or internal command

Answer

Please include c:\python27\Scripts in SYSTEM PATH

Procedure to add c:\python27\Scripts to system path:

  1. From the desktop, right click the Computer icon.
  2. Choose Properties from the context menu.
  3. Click the Advanced system settings link.
  4. Click Environment Variables. In the Edit System Variable (or New System Variable) window, add c:\python27\Scripts to the value of the PATH environment variable.(don't delete the existing ones)

Assumption: hoping your installation drive is C

Once you have added it, please close all command prompts and open a new command prompt and try it

Or in a new command prompt, type below command

C:\Python27\Scripts\pip.exe install twilio

EDIT: If everything fails, try the below way:

Open command prompt, type "python -m pip install twilio" (without quotes).