相信大家会在windows下会遇到Python双版本问题
当我们装了Python2和Python3时我们好只能在命令栏调出最高版本的那个低版本的难道消失了吗?今天我们就解决这个问题!
1.下载
我们在下载(网址;https://www.python.org/)我们所需要的版本(今天以Python2.7和Python3.6为例)

我们按照1~4下载下来我们所需要的Python2.7和Python3.6安装包

2.安装和设置环境变量
下载好文件之后我们进行安装
我们先进行安装python2.7

下一步选择我们安装的文件夹(切记最好不要设置不要有中文名字路径)
安装成功win+R键打开我们命令窗口:输入Python发现并没有

这时我们需要加入环境变量
加入环境变量的方法(鼠标右键—计算机—属性—高级系统设置—环境变量—系统变量—Path:在path后面加入安装路径和安装路径下的Scripts)




继续用命令发现Python2已经好了

Python3.6安装

3.修改~启动
修改文件

启动

这时我们发现我们输入Python时启动的时Python2输入Python3时启动的时Python3,即windows下Python双版本问题解决更多版本方法类同!