展开全部
(1)分别安2113装
python-2.7.12.amd64.msi
python-3.5.2-amd64.exe
(python官网下载的)
顺序无所谓(为5261了看着4102方便,我把安装路径修改统一了1653)
(2)配置环境变量
D:\p\Python\Python35\Scripts\;
D:\p\Python\Python35\;
D:\p\Python\Python27\Scripts\;
D:\p\Python\Python27\
(3)修改执行文件名称
因为各自的pip.exe依赖于各自版本的python.exe,即:
D:\p\Python\Python35\Scripts\pip3.exe (pip.exe、 pip3.5.exe、 pip3.exe其实是一个文件)
依赖于 D:\p\Python\Python35\python.exe
D:\p\Python\Python27\Scripts\pip2.exe (pip.exe、 pip2.7.exe、 pip2.exe其实是一个文件)
依赖于 D:\p\Python\Python27\python.exe
还有,"sublime text 2"开发平台,采用的也是环境变量中默认的"python.exe"(如果修改成python2.exe/python3.exe是无法识别的)
故,可以(用哪个版本保留哪个版本。):
A:若要使用python 2版本(改掉python 3的exe):
&