Most tutorials achieve coexistence by renaming python.exe, but I recommend the configuration described below.

Installing Python

Configuring Environment Variables

System -> Advanced System Settings -> Environment Variables -> Path

Specifying Python Version

Use the py -2 command for Python 2.7 and py -3 for Python 3.10.

Checking Python Version

Python 2.7 without pip

py -2 -m ensurepip --upgrade

Updating pip

Checking pip Version

Installing Dependencies

Using requests as an example