Python多版本安装 Python2.7和Python3.5

时间:2022-07-23 20:59:38

声明:本文仅仅在win8.1测试通过!

1.下载 Python2.7,3.5

2.依次安装Python27(c:\Python27)  Python35(c:\Python35)

3.c:\Python35中 将python.exe改为python3.exe pythonw.exe改为pythonw3.exe

4.添加环境变量 到Path中

c:\Python27;
c:\Python27\Scripts;
c:\Python35;
c:\Python35\Scripts;

Python多版本安装 Python2.7和Python3.5

5.调用时

Python多版本安装 Python2.7和Python3.5

6.pip 

  https://bootstrap.pypa.io/get-pip.py 保存为get-pip.py

  python3 get-pip.py  即可完成pip的安装

  

  调用 Python2:pip XXX

    Python3:pip3 XXX

    Python多版本安装 Python2.7和Python3.5