计算机(右键) --> 属性 --> 高级系统设置 --> 高级 --> 环境变量 --> 系统变量 --> path
--> 编辑
--> 在变量值中加入python目录地址,并以分号隔开
环境变量:
D:\Program Files\Python35\Scripts\;
D:\ProgramFiles\Python35\;
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
D:\Program Files\Python27