如何通过 pip 安装 twilio 包? [英] How can i install twilio package via pip?
问题描述
我的 Windows 机器上安装了 Python 2.7.12(64 位).当我安装它时,我添加了 pip 和 python.exe 路径.现在,当我尝试使用
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
我收到错误
pip is not recognized as an external or internal command
推荐答案
请在系统路径中包含 c:\python27\Scripts
Please include c:\python27\Scripts in SYSTEM PATH
将c:\python27\Scripts添加到系统路径的过程:
Procedure to add c:\python27\Scripts to system path:
- 在桌面上,右键单击计算机"图标.
- 从上下文菜单中选择属性.
- 点击高级系统设置链接.
- 单击环境变量.在 Edit System Variable (or New System Variable) 窗口中,将 c:\python27\Scripts 添加到 PATH 环境变量的值中.(不要删除现有的)
假设:希望你的安装驱动是 C
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:
打开命令提示符,输入python -m pip install twilio"(不带引号).
Open command prompt, type "python -m pip install twilio" (without quotes).
这篇关于如何通过 pip 安装 twilio 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!