Win7 installed Python2 and Pyhton3

python2 version: 2.7.16

python3 version: 3.7.4

Note: To install python3, you need to type win7 sp1 patch! Install python3 requires win7 sp1 patch! Install python3 requires win7 sp1 patch!

1. Install python2.7.16

Normal installation, set the environment variable after installation:

C:\Python27
C:\Python27\Scripts

   Then name the python.exe in the C:\Python27 directory as python2.exe

2, install python3

Normal installation, set environment variables after installation:

C:\Python37
C:\Python37\Scripts

  Then name the python.exe in the C:\Python37 directory as python3.exe

3. Reinstall pip

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

C:\Python27
C:\Python27\Scripts

C:\Python37
C:\Python37\Scripts

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

Leave a Comment

Your email address will not be published.