win7 install python2 and pyhton3

python2 Version: 2.7.16

python3 Version: 3.7.4

Note: The installation python3 need to fight win7 sp1 patch! Installation python3 need to fight win7 sp1 patch! Installation python3 need to fight win7 sp1 patch! 

1, the installation python2.7.16

Normal installation, set the environment variable After installation:

C:\Python27
C:\Python27\Scripts

  Then C: \ python.exe under Python27 directory named python2.exe

 

2, installation python3

Normal installation, set the environment variable After installation:

C:\Python37
C:\Python37\Scripts

  Then C: \ python.exe under Python37 directory named python3.exe

 

3, reinstall the pip

python3 -m pip install --upgrade pip --force-reinstall
python2 -m pip install --upgrade pip --force-reinstall

  

Guess you like

Origin www.cnblogs.com/royhawk/p/11504246.html