本机环境:windows8.1
1、安装python版本:python 2.7.11 和 python 3.4.4;如下图

图1
2、分别在:python27 和 python34建立py2.bat和py3.bat文件,如下图2:
添加内容:
py2为:C:\Python27\python2.exe %*
py3为:C:\Python34\python3.exe %*

图2
3、添加到环境变量
C:\Python27;C:\Python27\Scripts;C:\Python34;C:\Python34\Scripts;
如下图所示:

图3
4、测试:


pip的使用方法:
py2 -m pip install sth,py3 -m pip install sth
例如:
或者移步我的简书:
http://www.jianshu.com/p/8ae617189159