问题
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
回答1:
Please include c:\python27\Scripts in SYSTEM PATH
Procedure to add c:\python27\Scripts to system path:
- From the desktop, right click the Computer icon.
- Choose Properties from the context menu.
- Click the Advanced system settings link.
- 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).
来源:https://stackoverflow.com/questions/39060397/how-can-i-install-twilio-package-via-pip